Submission #9567820


Source Code Expand

Copy
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N,K,S = map(int,read().split())

if S > N:
    A = [S] * K + [1] * (N-K)
else:
    A = [S] * K + [S+1] * (N-K)

print(*A)

Submission Info

Submission Time
Task C - Subarray Sum
User maspy
Language Python (3.4.3)
Score 400
Code Size 252 Byte
Status AC
Exec Time 65 ms
Memory 6500 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 400 / 400
Status
AC × 2
AC × 21
Set Name Test Cases
Sample sample-01.txt, sample-02.txt
All 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 16.txt, 17.txt, 18.txt, 19.txt, sample-01.txt, sample-02.txt
Case Name Status Exec Time Memory
01.txt AC 36 ms 4524 KB
02.txt AC 34 ms 4572 KB
03.txt AC 53 ms 6268 KB
04.txt AC 53 ms 6244 KB
05.txt AC 53 ms 6244 KB
06.txt AC 58 ms 6500 KB
07.txt AC 64 ms 6500 KB
08.txt AC 56 ms 6116 KB
09.txt AC 63 ms 6116 KB
10.txt AC 56 ms 6116 KB
11.txt AC 56 ms 6116 KB
12.txt AC 64 ms 6140 KB
13.txt AC 65 ms 6140 KB
14.txt AC 56 ms 6140 KB
15.txt AC 65 ms 6140 KB
16.txt AC 59 ms 6268 KB
17.txt AC 28 ms 4404 KB
18.txt AC 53 ms 6244 KB
19.txt AC 17 ms 2940 KB
sample-01.txt AC 17 ms 2940 KB
sample-02.txt AC 17 ms 2940 KB