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

13073번 - Sums 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB108283471579.006%

문제

You are to write a program to compute different sums based on the given positive integer N.

입력

The first line of the input includes the number of test cases, 1 ≤ t ≤ 10000. Each test case appears in one line containing 1 ≤ N ≤ 10000.

출력

For each test case, print three space separated integers S1, S2, S3 in one line where

  • S1 : the sum of first N positive integer,
  • S2 : the sum of first N positive odd integer,
  • S3 : the sum of first N positive even integer.

제한

예제 입력 1

4
1
11
111
1111

예제 출력 1

1 1 2
66 121 132
6216 12321 12432
617716 1234321 1235432

힌트

출처

ICPC > Regionals > Asia West Continent > Iran > Iran Internet Programming Contest > IIPC 2015 A번

  • 문제의 오타를 찾은 사람: citizen
(追記) (追記ここまで)

출처

대학교 대회

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

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