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

Sum of Odd Sequence

Sum of Odd Sequence

Given an odd integer \textbf{N}, calculate the sum of all the odd integers between \textbf{1} and \textbf{N} inclusive. \InputFile First line of the input contains \textbf{T}, the number of test cases. Each test case contains a single integer \textbf{N}. \textbf{N} is between \textbf{1 }and \textbf{100}. \OutputFile For each test case output the value \textbf{1+3+….+N}.
Ліміт часу 1 секунда
Ліміт використання пам'яті 64 MiB
Вхідні дані #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