結果
問題 |
No.722 100×100=1000
|
ユーザー |
|
提出日時 | 2019-08-12 11:20:41 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 559 bytes |
コンパイル時間 | 80 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-12 12:11:23 |
合計ジャッジ時間 | 1,910 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 21 WA * 6 |
ソースコード
from sys import stdin def calc1(x, y): return (x * y) // 10 def calc2(x, y): ret = x * y if abs(ret) // 100000000: return 'E' else: return ret def main(): A, B = map(int, input().split()) if not A or not B: print(0) return for n in (abs(A), abs(B)): m = 0 while not m: d, m = divmod(n, 10) n //= 10 if d: ans = calc2(A, B) break else: ans = calc1(A, B) print(ans) input = lambda: stdin.readline() main()