1 The numbers are exactly N bits wide and they have no leading zeros. 2 The frequency of zeros and ones are equal. 3 The numbers are multiples of K. |
count(number, 0) == count(number, 1)
Sample Input 5 6 3 6 4 6 2 26 3 64 2 Sample Output Case 1: 1 Case 2: 3 Case 3: 6 Case 4: 1662453 Case 5: 465428353255261088 |
for #1 if N is 6 4 should looks like 000100?? |