結果

問題 No.2259 Gas Station
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2023-04-07 21:23:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 149 bytes
コンパイル時間 126 ms
コンパイル使用メモリ 82,500 KB
実行使用メモリ 59,628 KB
最終ジャッジ日時 2024-04-10 16:30:25
合計ジャッジ時間 1,759 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,440 KB
testcase_01 AC 35 ms
52,196 KB
testcase_02 AC 38 ms
52,832 KB
testcase_03 AC 35 ms
52,108 KB
testcase_04 AC 35 ms
51,992 KB
testcase_05 AC 33 ms
52,636 KB
testcase_06 AC 35 ms
52,376 KB
testcase_07 AC 32 ms
53,432 KB
testcase_08 AC 33 ms
53,948 KB
testcase_09 AC 32 ms
52,452 KB
testcase_10 AC 32 ms
53,832 KB
testcase_11 AC 33 ms
52,508 KB
testcase_12 AC 33 ms
52,476 KB
testcase_13 AC 37 ms
58,596 KB
testcase_14 AC 38 ms
59,628 KB
testcase_15 AC 38 ms
59,124 KB
testcase_16 AC 35 ms
51,828 KB
testcase_17 AC 35 ms
53,096 KB
testcase_18 AC 35 ms
52,976 KB
testcase_19 AC 38 ms
58,612 KB
testcase_20 AC 40 ms
57,956 KB
testcase_21 AC 39 ms
58,576 KB
testcase_22 AC 37 ms
58,972 KB
testcase_23 AC 35 ms
57,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

L,R,C = map(int,input().split())


ans = 999
for x in range(L,min(L+2000,R+1)):

    turi = (-x * C) % 1000

    ans = min(turi , ans)

print (ans)
0