結果

問題 No.722 100×100=1000
ユーザー simamumu
提出日時 2018-08-03 23:27:26
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 1,204 bytes
コンパイル時間 319 ms
コンパイル使用メモリ 12,928 KB
実行使用メモリ 11,648 KB
最終ジャッジ日時 2024-12-29 19:24:16
合計ジャッジ時間 2,712 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

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