結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
11,648 KB
testcase_01 AC 34 ms
11,520 KB
testcase_02 AC 32 ms
11,648 KB
testcase_03 AC 35 ms
11,520 KB
testcase_04 AC 34 ms
11,648 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 33 ms
11,648 KB
testcase_08 AC 33 ms
11,648 KB
testcase_09 AC 34 ms
11,520 KB
testcase_10 AC 33 ms
11,520 KB
testcase_11 AC 32 ms
11,520 KB
testcase_12 AC 33 ms
11,648 KB
testcase_13 AC 35 ms
11,648 KB
testcase_14 AC 34 ms
11,520 KB
testcase_15 AC 34 ms
11,520 KB
testcase_16 AC 35 ms
11,648 KB
testcase_17 AC 34 ms
11,520 KB
testcase_18 AC 34 ms
11,648 KB
testcase_19 AC 34 ms
11,648 KB
testcase_20 AC 33 ms
11,520 KB
testcase_21 WA -
testcase_22 AC 33 ms
11,520 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 33 ms
11,520 KB
testcase_26 AC 34 ms
11,648 KB
testcase_27 AC 34 ms
11,648 KB
testcase_28 AC 33 ms
11,520 KB
testcase_29 AC 33 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()
AA = abs(A)
BB = abs(B)

flag = True
while AA >= 10:
	if AA%10 == 0:
		AA //= 10
	else:
		flag = False
		break
while BB >= 10:
	if BB%10 == 0:
		BB //= 10
	else:
		flag = False
		break

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