結果

問題 No.2259 Gas Station
ユーザー okapin
提出日時 2023-04-07 21:26:27
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 215 bytes
コンパイル時間 213 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 64,896 KB
最終ジャッジ日時 2024-10-02 18:59:26
合計ジャッジ時間 2,305 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 RE * 1
other AC * 7 RE * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

l, r, c = map(int, input().split())
m = [False]*1000
for i in range(l, r+1):
    mod = 1000-c*i % 1000
    if m[mod]:
        break
    m[mod] = True
for i in range(1000):
    if m[i]:
        print(i)
        break
0