結果

問題 No.825 賢いお買い物
ユーザー akitsugu777akitsugu777
提出日時 2019-12-18 15:44:13
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 219 bytes
コンパイル時間 241 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-07-06 12:55:48
合計ジャッジ時間 1,467 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B, C = map(int, input().split())

L = []
for i in range(-10, A+1):
    for j in range(-10, B+1):
        if A-i + B-j == C and i + 10*j > 0:
            L += [i + 10*j]

print(min(L) if len(L) != 0 else 'Impossible')
0