#H. Pythagorean theorem

    传统题 1500ms 128MiB

Pythagorean theorem

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

Description

The example where Fan found the Pythagorean theorem was that 32+42=523^2+4^2=5^2 , and he find that 345 is continuous, and he want to find some other continuous sequence to make that longer, such as 102+112+122=132+14210^2 + 11^2 + 12^2 = 13^2 + 14^2 .It's easy to see that the length of the sequence is odd,and the length is ​2*n+1

Input Format

There are TT testcases.

The first line contains a positive integer T(1T105)T (1 \leq T \leq 10^5),denoting the amount of testcases.**

For each testcase:

Input only one positive integer n(1n109)n(1\leq n \leq 10^9).

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

2020HBCPC训练赛

未参加
状态
已结束
规则
ACM/ICPC
题目
8
开始于
2020-9-12 13:00
结束于
2020-9-12 17:00
持续时间
4 小时
主持人
参赛人数
15