結果
問題 | No.722 100×100=1000 |
ユーザー |
![]() |
提出日時 | 2020-04-07 10:09:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 363 bytes |
コンパイル時間 | 207 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 16,000 KB |
最終ジャッジ日時 | 2024-07-07 10:55:26 |
合計ジャッジ時間 | 4,099 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 9 TLE * 1 -- * 17 |
ソースコード
a, b = list(map(int, input().split(' '))) def sisu(a): m = 0 while a % 10 == 0: a //= 10 m += 1 return (a, m) ai, n = sisu(a) bi, m = sisu(b) if abs(ai) < 10 and abs(bi) < 10 and n >= 2 and m >= 2: ans = a * b // 10 else: temp = a * b if abs(temp) > 99999999: ans = 'E' else: ans = temp print(ans)