시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 128 MB | 3564 | 1777 | 1669 | 54.048% |
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.
10 1 3 5 7 9 11 13 15 17 19
1 4 9 16 25 36 49 64 81 100
ICPC > Regionals > Asia Pacific > Malaysia > Malaysia National Programming Contest > Al-Khawarizmi National Programming Contest 2011 A번