結果
| 問題 | No.2259 Gas Station |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-04-07 21:25:24 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 37 ms / 2,000 ms |
| コード長 | 172 bytes |
| 記録 | |
| コンパイル時間 | 163 ms |
| コンパイル使用メモリ | 85,632 KB |
| 実行使用メモリ | 52,096 KB |
| 最終ジャッジ日時 | 2026-04-19 02:31:37 |
| 合計ジャッジ時間 | 2,004 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
l,r,c = map(int,input().split())
if r - l > 2000:
print(0)
else:
ans = 10**10
for i in range(l,r+1):
ans = min(ans,(1000-i*c%1000)%1000)
print(ans)