結果
| 問題 | No.825 賢いお買い物 | 
| コンテスト | |
| ユーザー |  convexineq | 
| 提出日時 | 2021-04-03 13:03:13 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 48 ms / 2,000 ms | 
| コード長 | 211 bytes | 
| コンパイル時間 | 313 ms | 
| コンパイル使用メモリ | 82,048 KB | 
| 実行使用メモリ | 51,968 KB | 
| 最終ジャッジ日時 | 2024-12-24 16:56:20 | 
| 合計ジャッジ時間 | 2,318 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 19 | 
ソースコード
a,b,c = map(int,input().split())
t = a + 10*b
for i in range(c+1):
    v = i + 10*(c-i)
    if v > t: continue
    k = (t-v+9)//10
    if c-i+k >= b and t-v:
        print(t-v)
        exit()
print("Impossible")
            
            
            
        