This is a problem from a story about misreading the problem statement and coming up with a (fake) solution.
Consider a sequence of $$$N$$$ non-negative integers $$$a_1, \dots, a_N$$$. A single operation consists of the following 3 steps:
Your goal is to make the bitwise-or of the whole sequence as big as possible by performing zero or more operations. You also need to solve the minimum number of operations to obtain the maximum bitwise-or.
There are multiple testcases.
The first line is an integer $$$T$$$ denote the number of testcases. Each testcase starts with a positive integer $$$N$$$, and then $$$N$$$ space-seperated non-negative integers on the next line is $$$a_i$$$.
For each testcases, output a single line consists of two space-seperated integers, denoting the maximum bitwise-or and the minimum operation needed to obtain that maximum.
1 3 1 5 9
15 1
1 1 21
31 2
| Name |
|---|


