結果
問題 |
No.722 100×100=1000
|
ユーザー |
|
提出日時 | 2019-08-12 11:35:54 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 2,000 ms |
コード長 | 627 bytes |
コンパイル時間 | 415 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-29 19:46:52 |
合計ジャッジ時間 | 2,175 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 27 |
ソースコード
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)): if n < 100: ans = calc2(A, B) break 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()