結果

問題 No.825 賢いお買い物
ユーザー YCescaYCesca
提出日時 2019-05-03 23:35:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 284 bytes
コンパイル時間 101 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 8,016 KB
最終ジャッジ日時 2023-08-30 06:41:18
合計ジャッジ時間 1,578 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,788 KB
testcase_01 AC 16 ms
7,964 KB
testcase_02 WA -
testcase_03 RE -
testcase_04 WA -
testcase_05 AC 15 ms
7,968 KB
testcase_06 RE -
testcase_07 WA -
testcase_08 AC 15 ms
7,960 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 15 ms
8,016 KB
testcase_12 AC 15 ms
7,952 KB
testcase_13 RE -
testcase_14 AC 15 ms
7,876 KB
testcase_15 AC 15 ms
7,796 KB
testcase_16 AC 15 ms
7,880 KB
testcase_17 AC 15 ms
7,880 KB
testcase_18 AC 15 ms
7,824 KB
testcase_19 AC 15 ms
7,848 KB
testcase_20 AC 16 ms
7,772 KB
testcase_21 AC 15 ms
7,744 KB
権限があれば一括ダウンロードができます

ソースコード

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