結果

問題 No.836 じょうよ
ユーザー stngstng
提出日時 2022-07-10 18:42:52
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 362 bytes
コンパイル時間 1,448 ms
コンパイル使用メモリ 87,048 KB
実行使用メモリ 78,244 KB
最終ジャッジ日時 2023-09-02 02:01:19
合計ジャッジ時間 6,353 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 69 ms
71,496 KB
testcase_02 AC 70 ms
71,288 KB
testcase_03 AC 70 ms
71,484 KB
testcase_04 AC 69 ms
71,464 KB
testcase_05 AC 68 ms
71,084 KB
testcase_06 AC 68 ms
71,376 KB
testcase_07 WA -
testcase_08 AC 68 ms
71,276 KB
testcase_09 WA -
testcase_10 AC 69 ms
71,124 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 106 ms
78,152 KB
testcase_17 AC 104 ms
78,024 KB
testcase_18 WA -
testcase_19 AC 82 ms
76,672 KB
testcase_20 WA -
testcase_21 AC 79 ms
76,848 KB
testcase_22 AC 84 ms
76,828 KB
testcase_23 AC 86 ms
78,212 KB
testcase_24 AC 80 ms
76,668 KB
testcase_25 AC 81 ms
77,040 KB
testcase_26 AC 78 ms
76,476 KB
testcase_27 AC 79 ms
76,584 KB
testcase_28 AC 79 ms
76,548 KB
testcase_29 AC 79 ms
76,872 KB
testcase_30 AC 79 ms
76,912 KB
testcase_31 AC 80 ms
76,796 KB
testcase_32 AC 83 ms
76,348 KB
testcase_33 AC 80 ms
76,596 KB
testcase_34 AC 80 ms
76,600 KB
testcase_35 AC 81 ms
76,836 KB
testcase_36 AC 82 ms
77,068 KB
testcase_37 AC 83 ms
76,648 KB
testcase_38 AC 84 ms
76,804 KB
testcase_39 AC 83 ms
77,136 KB
testcase_40 AC 90 ms
78,244 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

l,r,n = map(int,input().split())

srt = l%n
end = r%n

li = [0]*n

if (r-l) // n >= 1:
    now = ((srt//n)+1)*n
    #print(r-now,srt)
    li = [(r-now+1)//n]*n
    for i in range(n-srt):
        li[i+srt] += 1
    for i in range((1+end)%n):
        li[i] += 1
else:
    for i in range(r-l+1):
        li[(l+i)%n] = 1
        

for i in range(n):
    print(li[i])
0