結果
問題 | No.722 100×100=1000 |
ユーザー |
![]() |
提出日時 | 2020-01-04 18:59:50 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 39 ms / 2,000 ms |
コード長 | 589 bytes |
コンパイル時間 | 242 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-29 19:49:48 |
合計ジャッジ時間 | 2,404 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 27 |
ソースコード
import math input_list = list(map(int,input().split())) a, b = input_list len_a = len(str(a)) len_b = len(str(b)) if '-' in str(a): len_a -= 1 if '-' in str(b): len_b -= 1 head_a = a / 10 ** (len_a - 1) head_b = b / 10 ** (len_b - 1) calculator = 0 res = None if len_a >= 3 and len_b >= 3: if math.floor(head_a) == math.ceil(head_a) and math.floor(head_b) == math.ceil(head_b): calculator = 1 res = int(a * b / 10) if calculator == 0: if a * b >= -99999999 and a * b <= 99999999: res = a * b else: res = 'E' print(res)