結果

問題 No.836 じょうよ
ユーザー lllllll88938494lllllll88938494
提出日時 2022-01-20 12:42:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 139 ms / 1,000 ms
コード長 293 bytes
コンパイル時間 787 ms
コンパイル使用メモリ 10,496 KB
実行使用メモリ 19,632 KB
最終ジャッジ日時 2023-08-15 09:45:03
合計ジャッジ時間 4,274 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
19,504 KB
testcase_01 AC 18 ms
8,432 KB
testcase_02 AC 18 ms
8,600 KB
testcase_03 AC 18 ms
8,432 KB
testcase_04 AC 18 ms
8,396 KB
testcase_05 AC 18 ms
8,416 KB
testcase_06 AC 18 ms
8,432 KB
testcase_07 AC 18 ms
8,444 KB
testcase_08 AC 18 ms
8,440 KB
testcase_09 AC 18 ms
8,444 KB
testcase_10 AC 18 ms
8,504 KB
testcase_11 AC 29 ms
9,952 KB
testcase_12 AC 35 ms
10,140 KB
testcase_13 AC 29 ms
9,944 KB
testcase_14 AC 20 ms
8,664 KB
testcase_15 AC 31 ms
10,132 KB
testcase_16 AC 139 ms
19,632 KB
testcase_17 AC 124 ms
19,192 KB
testcase_18 AC 28 ms
9,692 KB
testcase_19 AC 40 ms
11,012 KB
testcase_20 AC 84 ms
15,268 KB
testcase_21 AC 21 ms
8,988 KB
testcase_22 AC 51 ms
11,460 KB
testcase_23 AC 90 ms
15,040 KB
testcase_24 AC 26 ms
9,356 KB
testcase_25 AC 49 ms
12,320 KB
testcase_26 AC 19 ms
8,568 KB
testcase_27 AC 20 ms
8,880 KB
testcase_28 AC 26 ms
9,720 KB
testcase_29 AC 22 ms
9,072 KB
testcase_30 AC 21 ms
8,772 KB
testcase_31 AC 31 ms
10,204 KB
testcase_32 AC 31 ms
10,212 KB
testcase_33 AC 21 ms
8,992 KB
testcase_34 AC 30 ms
10,264 KB
testcase_35 AC 30 ms
10,236 KB
testcase_36 AC 58 ms
11,276 KB
testcase_37 AC 53 ms
11,200 KB
testcase_38 AC 72 ms
14,020 KB
testcase_39 AC 63 ms
13,984 KB
testcase_40 AC 106 ms
19,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict as df

l,r,n=map(int,input().split())
mod=set()
dic=df(int)
for i in range(l,r+1):
    mod.add(i%n)
    dic[i%n]=i
    if len(mod) == n:
        break
    
for i in range(n):
    if dic[i]==0:
        print(0)
        continue
    print( ((r-dic[i])//n)+1 )
0