結果

問題 No.2259 Gas Station
ユーザー wanui
提出日時 2023-04-07 21:51:39
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 143 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-10-02 19:24:41
合計ジャッジ時間 1,618 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 14 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

l,r,c = map(int,input().split())
ans = int(1e18)
for i in range(l,r+1):
    ans = min(ans,c*i%1000)
    if i > l+1000:
        break
print(ans)
0