結果

問題 No.722 100×100=1000
ユーザー simamumusimamumu
提出日時 2018-08-03 22:48:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 578 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,776 KB
最終ジャッジ日時 2024-04-20 15:00:30
合計ジャッジ時間 1,874 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
11,520 KB
testcase_01 AC 33 ms
11,392 KB
testcase_02 AC 32 ms
11,648 KB
testcase_03 AC 31 ms
11,392 KB
testcase_04 AC 30 ms
11,648 KB
testcase_05 WA -
testcase_06 AC 30 ms
11,520 KB
testcase_07 AC 30 ms
11,392 KB
testcase_08 AC 31 ms
11,520 KB
testcase_09 WA -
testcase_10 AC 31 ms
11,520 KB
testcase_11 WA -
testcase_12 AC 32 ms
11,520 KB
testcase_13 RE -
testcase_14 AC 34 ms
11,520 KB
testcase_15 AC 29 ms
11,392 KB
testcase_16 WA -
testcase_17 AC 30 ms
11,392 KB
testcase_18 AC 30 ms
11,648 KB
testcase_19 AC 34 ms
11,392 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 30 ms
11,648 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 RE -
testcase_26 RE -
testcase_27 AC 30 ms
11,520 KB
testcase_28 AC 29 ms
11,648 KB
testcase_29 AC 30 ms
11,520 KB
testcase_30 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
import sys,heapq,bisect,math,itertools,string,queue,datetime
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
AtoZ = [chr(i) for i in range(65,65+26)]
atoz = [chr(i) for i in range(97,97+26)]

def inpl(): return list(map(int, input().split()))
def inpl_str(): return list(input().split())

A,B = inpl()

La = int (math.log10(abs(A)) + 1) - 1
Lb = int (math.log10(abs(B)) + 1) - 1

if A%(10**La)==0 and B%(10**La)==0:
	print(A*B//10)
else:
	ans = A*B
	if -99999999 <= ans <= 99999999:
		print(ans)
	else:
		print('E')
0