結果

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

ソースコード

diff #

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

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

list=[0]*(c+1)

for i in range(c+1):
  list[i]=eval(i)

eval=list.pop(0)
while(eval > 0):
  eval=list.pop(0)

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