結果

問題 No.722 100×100=1000
ユーザー simamumusimamumu
提出日時 2018-08-03 23:27:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 33 ms / 2,000 ms
コード長 1,204 bytes
コンパイル時間 141 ms
コンパイル使用メモリ 10,892 KB
実行使用メモリ 10,492 KB
最終ジャッジ日時 2023-08-28 15:47:35
合計ジャッジ時間 2,461 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,272 KB
testcase_01 AC 31 ms
10,356 KB
testcase_02 AC 31 ms
10,272 KB
testcase_03 AC 31 ms
10,356 KB
testcase_04 AC 32 ms
10,308 KB
testcase_05 AC 31 ms
10,468 KB
testcase_06 AC 32 ms
10,272 KB
testcase_07 AC 32 ms
10,272 KB
testcase_08 AC 32 ms
10,484 KB
testcase_09 AC 31 ms
10,488 KB
testcase_10 AC 31 ms
10,492 KB
testcase_11 AC 32 ms
10,464 KB
testcase_12 AC 31 ms
10,340 KB
testcase_13 AC 32 ms
10,400 KB
testcase_14 AC 32 ms
10,296 KB
testcase_15 AC 31 ms
10,320 KB
testcase_16 AC 31 ms
10,388 KB
testcase_17 AC 32 ms
10,332 KB
testcase_18 AC 31 ms
10,408 KB
testcase_19 AC 31 ms
10,360 KB
testcase_20 AC 31 ms
10,304 KB
testcase_21 AC 32 ms
10,380 KB
testcase_22 AC 32 ms
10,336 KB
testcase_23 AC 31 ms
10,268 KB
testcase_24 AC 31 ms
10,344 KB
testcase_25 AC 31 ms
10,360 KB
testcase_26 AC 32 ms
10,388 KB
testcase_27 AC 32 ms
10,300 KB
testcase_28 AC 33 ms
10,340 KB
testcase_29 AC 31 ms
10,276 KB
testcase_30 AC 32 ms
10,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#list_int 並べて出力 print (' '.join(map(str,ans_li)))
#list_str 並べて出力 print (' '.join(list))

# 2進数 format(10, 'b') # '1010'

# aa=[int(input()) for i in range(n)]

#for i,name in enumerate(list)

''' 二次元配列を一列ずつ
for i in ans:
	print(*i)
'''
''' heapq
queue = []
heapq.heapify(queue) #heapqの作成
heapq.heappush(queue,num) #numのpush(値の追加)
pop = heapq.heappop(queue) #numのpop(最小値の出力)
pop = heapq.heappushpop(queue,num) #push -> pop

'''

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

if AA < 100 or BB < 100:
	flag = False

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