結果

問題 No.2259 Gas Station
ユーザー vwxyzvwxyz
提出日時 2023-04-07 22:34:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 36 ms / 2,000 ms
コード長 115 bytes
コンパイル時間 423 ms
コンパイル使用メモリ 82,280 KB
実行使用メモリ 53,892 KB
最終ジャッジ日時 2024-04-10 17:32:00
合計ジャッジ時間 2,192 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
52,612 KB
testcase_01 AC 33 ms
52,624 KB
testcase_02 AC 35 ms
52,256 KB
testcase_03 AC 36 ms
53,216 KB
testcase_04 AC 35 ms
52,148 KB
testcase_05 AC 34 ms
53,072 KB
testcase_06 AC 35 ms
52,896 KB
testcase_07 AC 35 ms
52,952 KB
testcase_08 AC 34 ms
53,492 KB
testcase_09 AC 33 ms
52,132 KB
testcase_10 AC 33 ms
52,432 KB
testcase_11 AC 34 ms
52,176 KB
testcase_12 AC 34 ms
53,824 KB
testcase_13 AC 36 ms
52,464 KB
testcase_14 AC 36 ms
53,208 KB
testcase_15 AC 35 ms
53,348 KB
testcase_16 AC 35 ms
53,824 KB
testcase_17 AC 34 ms
53,312 KB
testcase_18 AC 34 ms
52,564 KB
testcase_19 AC 34 ms
53,136 KB
testcase_20 AC 34 ms
53,892 KB
testcase_21 AC 34 ms
53,288 KB
testcase_22 AC 36 ms
52,692 KB
testcase_23 AC 36 ms
53,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

L,R,C=map(int,input().split())
R+=1
ans=1000
for i in range(L,min(R,L+1000)):
  ans=min(ans,(-C*i)%1000)
print(ans)
0