Skip to content

Latest commit

 

History

History
24 lines (12 loc) · 532 Bytes

File metadata and controls

24 lines (12 loc) · 532 Bytes

[Bronze III] Sum of Odd Sequence - 9713

문제 링크

성능 요약

메모리: 17704 KB, 시간: 216 ms

분류

사칙연산, 수학

문제 설명

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.