I don't have a good name for this one...
View as PDFIdeas come to me naturally. Only two people in the entire history of mankind have ever said that with truth — Parsa and Leonhard.
Input
The first line contains a single integer — the number of test cases.
Each test case contains
lines. The
-th line contains an integer
.
The sum of
over all test cases doesn't exceed 65.
Output
For each test case, print one integer — the answer.
Constraints
Example 1
Input
3
2
3
1
2
3
4
5
6
7
9
5
28
9
Comments