結果
| 問題 | 
                            No.836 じょうよ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             lllllll88938494
                         | 
                    
| 提出日時 | 2022-01-20 12:42:17 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 167 ms / 1,000 ms | 
| コード長 | 293 bytes | 
| コンパイル時間 | 222 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 22,016 KB | 
| 最終ジャッジ日時 | 2024-11-23 16:02:30 | 
| 合計ジャッジ時間 | 4,024 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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