#Lutece0825. A Bit Fun
A Bit Fun
Migrated from Lutece 825 A Bit Fun
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
There are numbers in a array, as , and another number . We define a function . Where is the bit-OR operation. ()
The problem is really simple: please count the number of different pairs of () where .
Input
The first line has a number () , indicating the number of test cases.
For each test case, first line contains two numbers and .() Then numbers come in the second line which is the array a, where .
Output
For every case, you should output Case #t:
at first, without quotes. The is the case number starting from .
Then follows the answer.
Samples
2
3 6
1 3 5
2 4
5 4
Case #1: 4
Case #2: 0
Resources
2013 ACM/ICPC Asia Regional Chengdu Online