Binary numbers and their pattern of bits are always very interesting to computer programmers. In this problem you need to count the number of positive binary numbers that have the following properties:
The input file contains several test cases. The first line of the input gives you the number of test cases, T (1 ≤ T ≤ 100). Then T test cases will follow, each in one line. The input for each test case consists of two integers, N (1 ≤ N ≤ 64) and K (0 ≤ K ≤ 100).
For each set of input print the test case number first. Then print the number of binary numbers that have the property that we mentioned. Illustration: Here’s a table showing the possible numbers for some of the sample test cases: 6 3 6 4 6 2 101010 111000 111000 110100 110100 101100 101100 110010 101010 100110
範例輸入 1
5 6 3 6 4 6 2 26 3 64 2
範例輸出 1
Case 1: 1 Case 2: 3 Case 3: 6 Case 4: 1662453 Case 5: 465428353255261088
Pro 專屬功能: 查看這題在歷屆 CPE 出現過幾次 — 升級以解鎖.