結果

問題 No.722 100×100=1000
コンテスト
ユーザー bellangeldindon
提出日時 2019-05-21 14:59:53
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 445 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 407 ms
コンパイル使用メモリ 77,340 KB
最終ジャッジ日時 2025-12-04 01:49:58
ジャッジサーバーID
(参考情報)
judge2 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

def ax10n(s):
	if s == '0': return False
	if s[0] == '-':
		if len(s) < 4: return False
		for i in range(2, len(s)):
			if s[i] != '0': return False
	else:
		if len(s) < 3: return False
		for i in range(1, len(s)):
			if s[i] != '0': return False
	return True

A, B = raw_input().split()
if ax10n(A) and ax10n(B):
	ans10 = int(A)*int(B)
	ans = ans10/10
	print ans
else:
	ans = int(A)*int(B)
	if len(str(abs(ans))) > 8: print 'E'
	else: print ans
0