結果
問題 |
No.722 100×100=1000
|
ユーザー |
|
提出日時 | 2019-08-12 11:14:53 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 498 bytes |
コンパイル時間 | 371 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 16,000 KB |
最終ジャッジ日時 | 2024-10-12 12:11:17 |
合計ジャッジ時間 | 4,278 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 4 WA * 5 TLE * 1 -- * 17 |
ソースコード
from sys import stdin def calc1(x, y): return (x * y) // 10 def calc2(x, y): ret = x * y if ret // 100000000: return 'E' else: return ret def main(): A, B = map(int, input().split()) 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()