結果

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

ソースコード

diff #

L, R, C = map(int, input().split())
C %= 1000
ans = 10 ** 10
for x in range(1000) :
    if x > R :
        continue
    k = (R - x) // 1000
    if 1000 * k + x < L :
        continue
    res = (C * x) % 1000
    ret = (1000 - res) % 1000
    ans = min(ans, res)
print(ans)
0