(int[] arr, int[] s, int c, int o)
| 47 | } |
| 48 | |
| 49 | private static void idxToComb(int[] arr, int[] s, int c, int o) { |
| 50 | int q = 4; |
| 51 | for (int i = 0; i < 12; i++) |
| 52 | if (c >= Cnk[11 - i][q]) { |
| 53 | c -= Cnk[11 - i][q--]; |
| 54 | arr[i] = s[q] << 1 | o & 1; |
| 55 | o >>= 1; |
| 56 | } else arr[i] = -1; |
| 57 | } |
| 58 | |
| 59 | private static void idxToComb(int[] arr, int[] s, int c, int o, int[] map) { |
| 60 | int q = 4; |