結果
| 問題 |
No.2259 Gas Station
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-14 19:28:16 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 156 bytes |
| コンパイル時間 | 77 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 21,248 KB |
| 最終ジャッジ日時 | 2024-11-30 06:52:23 |
| 合計ジャッジ時間 | 25,284 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 TLE * 8 |
ソースコード
mins = 0
l, r, c = map(int, input().split())
sc = float("inf")
for i in range(r - l + 1):
sc = min((1000 - ((l + i) * c) % 1000) % 1000, sc)
print(sc)