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

19509번 - Different Sums 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 256 MB149262016.393%

문제

A subsum of a sequence is a sum of one or more consecutive elements of this sequence.

You are given an integer $N$. Your task is to make a sequence of positive integers which are not greater than 3ドル \cdot (N + 6)$ such that all its $N \cdot (N + 1) / 2$ subsums are different from each other.

입력

There are several test cases.

The first line of input contains an integer $T,ドル the number of test cases (1ドル \leq T \leq 200$).

Each of the next $T$ lines contains an integer $N,ドル the length of the sequence (1ドル \le N \le 2000$).

출력

For each test case, print one line with $N$ space-separated positive integers representing your sequence.

If multiple solutions exist, any of them will be accepted.

제한

예제 입력 1

2
2
5

예제 출력 1

1 2
1 2 4 8 16

힌트

출처

Camp > Petrozavodsk Programming Camp > Summer 2016 > Day 8: DPRK Contest D번

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

출처

대학교 대회

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

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