結果

問題 No.836 じょうよ
ユーザー caleicalei
提出日時 2020-01-21 20:56:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 115 ms / 1,000 ms
コード長 340 bytes
コンパイル時間 103 ms
コンパイル使用メモリ 10,960 KB
実行使用メモリ 22,168 KB
最終ジャッジ日時 2023-09-20 09:56:39
合計ジャッジ時間 3,798 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
21,912 KB
testcase_01 AC 19 ms
8,476 KB
testcase_02 AC 19 ms
8,504 KB
testcase_03 AC 19 ms
8,540 KB
testcase_04 AC 19 ms
8,488 KB
testcase_05 AC 19 ms
8,548 KB
testcase_06 AC 19 ms
8,524 KB
testcase_07 AC 19 ms
8,484 KB
testcase_08 AC 19 ms
8,608 KB
testcase_09 AC 19 ms
8,492 KB
testcase_10 AC 19 ms
8,672 KB
testcase_11 AC 27 ms
9,612 KB
testcase_12 AC 32 ms
9,980 KB
testcase_13 AC 27 ms
9,652 KB
testcase_14 AC 20 ms
8,804 KB
testcase_15 AC 29 ms
9,736 KB
testcase_16 AC 115 ms
22,168 KB
testcase_17 AC 107 ms
21,616 KB
testcase_18 AC 26 ms
9,472 KB
testcase_19 AC 38 ms
11,452 KB
testcase_20 AC 74 ms
16,220 KB
testcase_21 AC 22 ms
8,796 KB
testcase_22 AC 43 ms
9,336 KB
testcase_23 AC 75 ms
10,968 KB
testcase_24 AC 25 ms
9,380 KB
testcase_25 AC 41 ms
9,844 KB
testcase_26 AC 19 ms
8,740 KB
testcase_27 AC 20 ms
8,892 KB
testcase_28 AC 25 ms
9,132 KB
testcase_29 AC 22 ms
9,152 KB
testcase_30 AC 21 ms
9,024 KB
testcase_31 AC 30 ms
9,748 KB
testcase_32 AC 29 ms
9,836 KB
testcase_33 AC 22 ms
8,988 KB
testcase_34 AC 28 ms
9,812 KB
testcase_35 AC 29 ms
9,712 KB
testcase_36 AC 49 ms
9,172 KB
testcase_37 AC 47 ms
9,168 KB
testcase_38 AC 60 ms
9,204 KB
testcase_39 AC 54 ms
9,224 KB
testcase_40 AC 83 ms
9,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# yukicoder No.836 じょうよ 2020/01/21

from collections import Counter

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

res=[]
dic={}
for i in range(l,min(l+n,r+1)):
    num=i%n
    res.append(num)
    dic[num]=dic.get(num,0)+1
d,m=divmod((r-l+1),n)

dic={k:v*d for k,v in dic.items()}

C=Counter(dic)
C.update(res[:m])

[print(C[i])for i in range(n)]
0