eolymp
bolt
Спробуйте наш новий інтерфейс для відправки розв'язків
Задачі

Sum of Odd Sequence

Sum of Odd Sequence

Ліміт часу 1 секунда
Ліміт використання пам'яті 64 MiB

Given an odd integer N, calculate the sum of all the odd integers between 1 and N inclusive.

Вхідні дані

First line of the input contains T, the number of test cases. Each test case contains a single integer N. N is between 1 and 100.

Вихідні дані

For each test case output the value 1+3+….+N.

Приклад

Вхідні дані #1
10
1
3
5
7
9
11
13
15
17
19
Вихідні дані #1
1
4
9
16
25
36
49
64
81
100
Джерело ACM-ICPC Malaysia al-Khawārizmī Programming Contest 2011