結果

問題 No.722 100×100=1000
ユーザー _KingdomOfMoray_KingdomOfMoray
提出日時 2020-01-04 18:59:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 17 ms / 2,000 ms
コード長 589 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 10,796 KB
実行使用メモリ 8,104 KB
最終ジャッジ日時 2023-08-28 15:59:11
合計ジャッジ時間 1,815 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,092 KB
testcase_01 AC 16 ms
7,872 KB
testcase_02 AC 16 ms
7,980 KB
testcase_03 AC 16 ms
7,996 KB
testcase_04 AC 16 ms
7,992 KB
testcase_05 AC 16 ms
7,908 KB
testcase_06 AC 16 ms
7,996 KB
testcase_07 AC 16 ms
7,976 KB
testcase_08 AC 16 ms
8,040 KB
testcase_09 AC 16 ms
7,912 KB
testcase_10 AC 15 ms
8,036 KB
testcase_11 AC 16 ms
7,940 KB
testcase_12 AC 16 ms
7,916 KB
testcase_13 AC 16 ms
8,104 KB
testcase_14 AC 16 ms
7,972 KB
testcase_15 AC 16 ms
7,980 KB
testcase_16 AC 16 ms
7,952 KB
testcase_17 AC 16 ms
7,980 KB
testcase_18 AC 16 ms
7,944 KB
testcase_19 AC 16 ms
7,916 KB
testcase_20 AC 16 ms
8,032 KB
testcase_21 AC 16 ms
7,944 KB
testcase_22 AC 17 ms
7,944 KB
testcase_23 AC 16 ms
7,928 KB
testcase_24 AC 16 ms
7,928 KB
testcase_25 AC 16 ms
7,904 KB
testcase_26 AC 16 ms
7,912 KB
testcase_27 AC 16 ms
7,876 KB
testcase_28 AC 16 ms
7,940 KB
testcase_29 AC 17 ms
7,972 KB
testcase_30 AC 16 ms
7,988 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0