Logo
(追記) (追記ここまで)

9713번 - Sum of Odd Sequence 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB50912565240754.200%

문제

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

힌트

출처

ICPC > Regionals > Asia Pacific > Malaysia > Malaysia National Programming Contest > Al-Khawarizmi National Programming Contest 2011 A번

  • 데이터를 추가한 사람: edenooo
(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /