結果
| 問題 |
No.836 じょうよ
|
| コンテスト | |
| ユーザー |
lllllll88938494
|
| 提出日時 | 2022-01-20 12:38:28 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 94 ms / 1,000 ms |
| コード長 | 300 bytes |
| コンパイル時間 | 163 ms |
| コンパイル使用メモリ | 82,444 KB |
| 実行使用メモリ | 97,408 KB |
| 最終ジャッジ日時 | 2024-11-23 15:51:48 |
| 合計ジャッジ時間 | 4,203 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 41 |
ソースコード
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 )
lllllll88938494