結果

問題 No.2259 Gas Station
ユーザー tassei903tassei903
提出日時 2023-04-07 21:22:46
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 450 bytes
コンパイル時間 127 ms
コンパイル使用メモリ 82,200 KB
実行使用メモリ 65,100 KB
最終ジャッジ日時 2024-04-10 16:29:41
合計ジャッジ時間 6,556 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
60,516 KB
testcase_01 AC 30 ms
52,744 KB
testcase_02 AC 34 ms
53,240 KB
testcase_03 AC 36 ms
53,496 KB
testcase_04 AC 35 ms
52,064 KB
testcase_05 AC 32 ms
52,948 KB
testcase_06 AC 31 ms
53,132 KB
testcase_07 AC 32 ms
53,868 KB
testcase_08 AC 32 ms
52,744 KB
testcase_09 AC 33 ms
52,880 KB
testcase_10 AC 32 ms
52,804 KB
testcase_11 AC 35 ms
52,660 KB
testcase_12 AC 31 ms
52,196 KB
testcase_13 TLE -
testcase_14 TLE -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda :sys.stdin.readline()[:-1]
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES")
no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO")
#######################################################################
l,r,c = na()
ans = 10**18
for i in range(l, r+1):
    ans = min(ans, (-i * c)%1000)

print(ans)

0