結果
問題 | No.722 100×100=1000 |
ユーザー |
![]() |
提出日時 | 2020-08-30 02:49:17 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 52 ms / 2,000 ms |
コード長 | 713 bytes |
コンパイル時間 | 1,838 ms |
コンパイル使用メモリ | 81,664 KB |
実行使用メモリ | 53,888 KB |
最終ジャッジ日時 | 2024-12-29 19:58:35 |
合計ジャッジ時間 | 2,700 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 27 |
ソースコード
import sys; input = sys.stdin.buffer.readline sys.setrecursionlimit(10**7) from collections import defaultdict con = 10 ** 9 + 7; INF = float("inf") def getlist(): return list(map(int, input().split())) #処理内容 def main(): A, B = getlist() if A == 0 or B == 0: print(0) return AA, BB = A, B n = 0 m = 0 while True: if A % 10 == 0: n += 1 A = int(A // 10) else: break while True: if B % 10 == 0: m += 1 B = int(B // 10) else: break if abs(A) < 10 and abs(B) < 10 and n >= 2 and m >= 2: ans = int(A * B * (10 ** ((n + m) - 1))) print(ans) return ans = AA * BB if abs(ans) < 10 ** 8: print(ans) else: print("E") if __name__ == '__main__': main()