結果
| 問題 | No.825 賢いお買い物 | 
| コンテスト | |
| ユーザー |  _matumo_ | 
| 提出日時 | 2019-12-27 23:48:00 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 259 bytes | 
| コンパイル時間 | 85 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-10-09 17:15:52 | 
| 合計ジャッジ時間 | 1,532 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 18 WA * 1 | 
ソースコード
def fx(A,B,C):
    # if A+B==C:  return 0
    M=A+B*10
    for i in range(1,M+1):
        a,b=(M-i)%10,(M-i)//10
        if a+b==C:  return i
    return "Impossible"
def main():
    A,B,C=[int(s) for s in input().split()]
    n=fx(A,B,C)
    print(n)
main()
            
            
            
        