The Great XOR
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 122.174 megabytes
Given a long integer , count the number of values of satisfying the following conditions:
where is the bitwise XOR operator.
You are given queries, and each query is in the form of a long integer denoting . For each query, print the total number of values of satisfying the conditions above on a new line.
Input
The first line contains the number of queries . Each of the subsequent lines contains a long integer describing the value of for a query.
Output
For each query, print the number of values of satisfying the given conditions on a new line.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 32%