結果

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

ソースコード

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)]


ans = "Impossible"

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