結果

問題 No.2259 Gas Station
ユーザー sotanishy
提出日時 2023-03-08 18:32:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 139 bytes
コンパイル時間 828 ms
コンパイル使用メモリ 82,232 KB
実行使用メモリ 53,348 KB
最終ジャッジ日時 2024-10-02 18:47:39
合計ジャッジ時間 1,842 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

L, R, C = map(int, input().split())
if R - L > 1000:
    print(0)
else:
    ans = min((-x*C) % 1000 for x in range(L, R+1))
    print(ans)
0