結果

問題 No.825 賢いお買い物
ユーザー Konton7
提出日時 2019-05-03 21:37:08
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 239 bytes
コンパイル時間 195 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-12-31 17:34:40
合計ジャッジ時間 1,700 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

m, d, total = [int(v) for v in input().split(" ")]
first = m + 10 * d
c_list = [ i + (total-i) * 10 for i in range(total+1)]

print(first,c_list)
ans = -1

for i in c_list:
    if first > i:
        ans = first - i
        break
print(ans)
0