(int idx)
| 144 | } |
| 145 | |
| 146 | private void setct(int idx) { |
| 147 | int r = 8; |
| 148 | ct[15] = 0; |
| 149 | for (int i = 14; i >= 0; i--) { |
| 150 | if (idx >= Cnk[i][r]) { |
| 151 | idx -= Cnk[i][r--]; |
| 152 | ct[i] = 1; |
| 153 | } else { |
| 154 | ct[i] = 0; |
| 155 | } |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | private void rot(int r) { |
| 160 | switch (r) { |