結果
問題 |
No.825 賢いお買い物
|
ユーザー |
![]() |
提出日時 | 2019-12-27 23:59:56 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 273 bytes |
コンパイル時間 | 87 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-09 17:33:18 |
合計ジャッジ時間 | 1,468 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 15 WA * 4 |
ソースコード
def fx(A,B,C): M=A+B*10 for i in range(1,M+1): a,b=(M-i)%10,(M-i)//10 for j in range(b+1): if a+(b-j)+j*10==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()