結果

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

ソースコード

diff #

a,b,c=map(int,input().split())

def eval(i: int) ->int:
  res = (10 * (c-i) + i) - (10 * b + a)
  return res

res = eval(0)
for i in range(1,c+1):
  eva=eval(i)
  if res < eva:
    res=eva

if res > 0 :
  print("Impossible")
else:
  print(abs(res))
0