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