結果

問題 No.836 じょうよ
ユーザー lllllll88938494lllllll88938494
提出日時 2022-01-20 12:38:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 134 ms / 1,000 ms
コード長 300 bytes
コンパイル時間 1,190 ms
コンパイル使用メモリ 87,252 KB
実行使用メモリ 98,176 KB
最終ジャッジ日時 2023-08-15 09:37:59
合計ジャッジ時間 6,893 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
98,000 KB
testcase_01 AC 90 ms
71,440 KB
testcase_02 AC 91 ms
71,888 KB
testcase_03 AC 92 ms
71,644 KB
testcase_04 AC 92 ms
71,660 KB
testcase_05 AC 92 ms
71,608 KB
testcase_06 AC 90 ms
71,776 KB
testcase_07 AC 90 ms
71,864 KB
testcase_08 AC 91 ms
71,680 KB
testcase_09 AC 91 ms
71,392 KB
testcase_10 AC 91 ms
71,888 KB
testcase_11 AC 108 ms
78,096 KB
testcase_12 AC 109 ms
78,812 KB
testcase_13 AC 108 ms
77,644 KB
testcase_14 AC 111 ms
77,640 KB
testcase_15 AC 108 ms
78,244 KB
testcase_16 AC 132 ms
98,176 KB
testcase_17 AC 129 ms
95,900 KB
testcase_18 AC 107 ms
77,892 KB
testcase_19 AC 109 ms
79,800 KB
testcase_20 AC 119 ms
86,972 KB
testcase_21 AC 103 ms
77,580 KB
testcase_22 AC 119 ms
82,200 KB
testcase_23 AC 133 ms
89,860 KB
testcase_24 AC 113 ms
77,688 KB
testcase_25 AC 117 ms
81,116 KB
testcase_26 AC 104 ms
77,696 KB
testcase_27 AC 102 ms
77,460 KB
testcase_28 AC 116 ms
77,936 KB
testcase_29 AC 111 ms
77,756 KB
testcase_30 AC 108 ms
77,792 KB
testcase_31 AC 108 ms
78,116 KB
testcase_32 AC 105 ms
77,844 KB
testcase_33 AC 107 ms
77,676 KB
testcase_34 AC 107 ms
77,872 KB
testcase_35 AC 108 ms
77,960 KB
testcase_36 AC 113 ms
82,896 KB
testcase_37 AC 110 ms
82,940 KB
testcase_38 AC 118 ms
86,796 KB
testcase_39 AC 114 ms
84,804 KB
testcase_40 AC 123 ms
92,104 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