atcoder#KEYENCE2020C. Subarray Sum

Subarray Sum

Score : 400400 points

Problem Statement

Given are three integers NN, KK, and SS.

Find a sequence A1,A2,...,ANA_1, A_2, ..., A_N of NN integers between 11 and 10910^9 (inclusive) that satisfies the condition below. We can prove that, under the conditions in Constraints, such a sequence always exists.

  • There are exactly KK pairs (l,r)(l, r) of integers such that 1lrN1 \leq l \leq r \leq N and Al+Al+1++Ar=SA_l + A_{l + 1} + \cdots + A_r = S.

Constraints

  • 1N1051 \leq N \leq 10^5
  • 0KN0 \leq K \leq N
  • 1S1091 \leq S \leq 10^9
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

NN KK SS

Output

Print a sequence satisfying the condition, in the following format:

A1A_1 A2A_2 ...... ANA_N

4 2 3
1 2 3 4

Two pairs (l,r)=(1,2)(l, r) = (1, 2) and (3,3)(3, 3) satisfy the condition in the statement.

5 3 100
50 50 50 30 70