結果
問題 |
No.2259 Gas Station
|
ユーザー |
|
提出日時 | 2023-04-07 22:27:48 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 228 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-02 19:55:08 |
合計ジャッジ時間 | 1,562 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 21 |
ソースコード
L, R, C = map(int, input().split()) C %= 1000 ans = 10 ** 10 for i in range(1000) : if x > R : continue k = (R - x) // 1000 if 1000 * k + x < L : continue ans = min(ans, (C * x) % 1000) print(ans)