()
| 107 | } |
| 108 | |
| 109 | int getrl() { |
| 110 | int idx = 0; |
| 111 | int r = 4; |
| 112 | for (int i = 6; i >= 0; i--) { |
| 113 | if (rl[i] != rl[7]) { |
| 114 | idx += Cnk[i][r--]; |
| 115 | } |
| 116 | } |
| 117 | return idx * 2 + parity; |
| 118 | } |
| 119 | |
| 120 | private void setrl(int idx) { |
| 121 | parity = idx & 1; |