Pythagorean theorem
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
Description
The example where Fan found the Pythagorean theorem was that , and he find that 345 is continuous, and he want to find some other continuous sequence to make that longer, such as .It's easy to see that the length of the sequence is odd,and the length is 2*n+1
Input Format
There are testcases.
The first line contains a positive integer ,denoting the amount of testcases.**
For each testcase:
Input only one positive integer .
Output Format
For each testcase:
you should print the middle number in a continuous sequence.
2
1
2
4
12
Hint
n=1,the sequence is 3, 4, 5, the middle number is 4
n=2,the sequence is , the middle number is 12