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

23499번 - Farmer 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 (추가 시간 없음) 256 MB54261943.182%

문제

You are given three numbers $n, k$ and $x$. Construct an array $A$ with the following properties:

  • $A$ contains exactly $n$ elements.
  • All elements of $A$ are positive integers smaller than 10ドル^6$.
  • There are exactly $k$ pairs of indices $(i, j)$ such that: 1ドル \le i < j \le n$ and $|A_i - A_j| \geq x$.

입력

Single line of input contains three numbers $n$ $(1 \leq n \leq 1000),ドル $k$ $(0 \leq k \leq \frac{n\cdot (n-1)}{2}),ドル $x$ $(2\leq x \leq 1000)$.

출력

In single line of output print $n$ integers, elements of array $A$. In case there is no array with needed properties, print $-1$

제한

예제 입력 1

3 2 5

예제 출력 1

1 8 2

힌트

출처

Contest > Open Cup > 2019/2020 Season > Stage 19: The Grand Prix of Serbia A번

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

출처

대학교 대회

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

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