AtCoder Regular Contest 079

Submission #1471485

Source codeソースコード

K = int(input())
mul, div = divmod(K, 50)
a = [n+mul for n in range(50)]

for _ in [None]*div:
    a = [n-1 for n in a[1:]] + [a[0]+50]

print("50\n"+" ".join((str(n) for n in a)))

Submission

Task問題 D - Decrease (Contestant ver.)
User nameユーザ名 htkb
Created time投稿日時
Language言語 Python3 (3.4.3)
Status状態 AC
Score得点 600
Source lengthソースコード長 187 Byte
File nameファイル名
Exec time実行時間 17 ms
Memory usageメモリ使用量 3060 KB

Test case

Set

Set name Score得点 / Max score Cases
Sample - example0,example1,example2,example3,example4
All 600 / 600 corner0,corner1,corner2,corner3,corner4,corner5,corner6,corner7,corner8,corner9,example0,example1,example2,example3,example4,rand0,rand1,rand2,rand3,rand4,rand5,rand6,rand7,rand8,rand9

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
corner0 AC 17 ms 3060 KB
corner1 AC 17 ms 2940 KB
corner2 AC 17 ms 3060 KB
corner3 AC 17 ms 2940 KB
corner4 AC 17 ms 3060 KB
corner5 AC 17 ms 3060 KB
corner6 AC 17 ms 2940 KB
corner7 AC 17 ms 2940 KB
corner8 AC 17 ms 2940 KB
corner9 AC 17 ms 3060 KB
example0 AC 17 ms 2940 KB
example1 AC 17 ms 3060 KB
example2 AC 17 ms 2940 KB
example3 AC 17 ms 3060 KB
example4 AC 17 ms 3060 KB
rand0 AC 17 ms 2940 KB
rand1 AC 17 ms 3060 KB
rand2 AC 17 ms 2940 KB
rand3 AC 17 ms 3060 KB
rand4 AC 17 ms 2940 KB
rand5 AC 17 ms 2940 KB
rand6 AC 17 ms 3060 KB
rand7 AC 17 ms 3060 KB
rand8 AC 17 ms 2940 KB
rand9 AC 16 ms 3060 KB