結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
78,164 KB
testcase_01 AC 71 ms
71,104 KB
testcase_02 AC 72 ms
71,464 KB
testcase_03 AC 71 ms
71,256 KB
testcase_04 AC 73 ms
71,372 KB
testcase_05 AC 73 ms
71,252 KB
testcase_06 AC 71 ms
71,384 KB
testcase_07 AC 72 ms
71,112 KB
testcase_08 AC 72 ms
71,384 KB
testcase_09 AC 71 ms
71,332 KB
testcase_10 AC 71 ms
71,256 KB
testcase_11 AC 83 ms
76,764 KB
testcase_12 AC 87 ms
76,824 KB
testcase_13 AC 86 ms
76,556 KB
testcase_14 AC 86 ms
76,800 KB
testcase_15 AC 85 ms
76,356 KB
testcase_16 AC 96 ms
78,148 KB
testcase_17 AC 95 ms
77,856 KB
testcase_18 AC 84 ms
76,860 KB
testcase_19 AC 84 ms
76,632 KB
testcase_20 AC 87 ms
76,956 KB
testcase_21 AC 81 ms
76,324 KB
testcase_22 AC 85 ms
77,096 KB
testcase_23 AC 93 ms
77,924 KB
testcase_24 AC 86 ms
76,536 KB
testcase_25 AC 86 ms
76,836 KB
testcase_26 AC 82 ms
76,916 KB
testcase_27 AC 82 ms
76,688 KB
testcase_28 AC 84 ms
76,508 KB
testcase_29 AC 83 ms
76,568 KB
testcase_30 AC 82 ms
76,444 KB
testcase_31 AC 84 ms
76,720 KB
testcase_32 AC 82 ms
76,612 KB
testcase_33 AC 80 ms
76,704 KB
testcase_34 AC 84 ms
76,324 KB
testcase_35 AC 86 ms
76,796 KB
testcase_36 AC 85 ms
77,052 KB
testcase_37 AC 86 ms
77,056 KB
testcase_38 AC 85 ms
76,776 KB
testcase_39 AC 85 ms
76,868 KB
testcase_40 AC 91 ms
77,980 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

srt = l%n
end = r%n

li = [0]*n

if (r-l+1) // n >= 1:
    now = ((l//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