結果
問題 |
No.836 じょうよ
|
ユーザー |
![]() |
提出日時 | 2020-04-11 16:11:02 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 77 ms / 1,000 ms |
コード長 | 214 bytes |
コンパイル時間 | 129 ms |
コンパイル使用メモリ | 82,428 KB |
実行使用メモリ | 76,800 KB |
最終ジャッジ日時 | 2024-09-19 04:01:46 |
合計ジャッジ時間 | 3,581 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 41 |
ソースコード
l,r,n=map(int,input().split()) cnt=[0]*n v1=l//n+1 if l%n!=0 else l//n v2=r//n for i in range(n): ans=v2-v1 if i>=l%n and l%n!=0: ans+=1 if i<=r%n and r%n!=0: ans+=1 if n==1: ans+=1 print(ans)