結果

問題 No.2259 Gas Station
ユーザー okapinokapin
提出日時 2023-04-07 21:26:27
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 215 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 82,360 KB
実行使用メモリ 66,876 KB
最終ジャッジ日時 2024-04-10 16:34:56
合計ジャッジ時間 2,275 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
52,324 KB
testcase_01 RE -
testcase_02 AC 34 ms
53,480 KB
testcase_03 AC 34 ms
52,188 KB
testcase_04 RE -
testcase_05 AC 34 ms
53,076 KB
testcase_06 RE -
testcase_07 RE -
testcase_08 AC 34 ms
53,132 KB
testcase_09 AC 37 ms
52,612 KB
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 AC 35 ms
53,100 KB
testcase_17 AC 35 ms
51,692 KB
testcase_18 AC 36 ms
52,648 KB
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
権限があれば一括ダウンロードができます

ソースコード

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