結果

問題 No.2259 Gas Station
ユーザー pyt-314
提出日時 2023-05-14 19:28:52
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 156 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 109,056 KB
最終ジャッジ日時 2024-11-30 06:52:54
合計ジャッジ時間 17,841 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16 TLE * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0