結果
問題 |
No.836 じょうよ
|
ユーザー |
![]() |
提出日時 | 2020-05-10 13:45:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 108 ms / 1,000 ms |
コード長 | 399 bytes |
コンパイル時間 | 160 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-07 14:51:55 |
合計ジャッジ時間 | 3,742 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 41 |
ソースコード
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) elif l-1==r: for i in range(n): print(c) else: for i in range(n): if i<=r or l<=i: print(c+1) else: print(c)