結果
問題 |
No.836 じょうよ
|
ユーザー |
![]() |
提出日時 | 2020-05-10 13:43:36 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 346 bytes |
コンパイル時間 | 159 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-07 14:50:02 |
合計ジャッジ時間 | 4,140 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 40 WA * 1 |
ソースコード
import sys input=lambda: sys.stdin.readline().rstrip() l,r,n=map(int,input().split()) if n==1: print(r-l+1) else: c=(r-l+1)//n l%=n r%=n if l<=r: for i in range(n): if l<=i<=r: print(c+1) else: print(c) else: for i in range(n): if i<=r or l<=i: print(c+1) else: print(c)