結果

問題 No.722 100×100=1000
ユーザー 双六双六
提出日時 2020-08-30 02:49:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 93 ms / 2,000 ms
コード長 713 bytes
コンパイル時間 339 ms
コンパイル使用メモリ 87,284 KB
実行使用メモリ 71,884 KB
最終ジャッジ日時 2023-08-28 16:02:26
合計ジャッジ時間 4,484 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
71,684 KB
testcase_01 AC 87 ms
71,536 KB
testcase_02 AC 86 ms
71,780 KB
testcase_03 AC 90 ms
71,800 KB
testcase_04 AC 89 ms
71,656 KB
testcase_05 AC 89 ms
71,700 KB
testcase_06 AC 90 ms
71,624 KB
testcase_07 AC 88 ms
71,652 KB
testcase_08 AC 90 ms
71,720 KB
testcase_09 AC 89 ms
71,604 KB
testcase_10 AC 89 ms
71,884 KB
testcase_11 AC 90 ms
71,704 KB
testcase_12 AC 88 ms
71,804 KB
testcase_13 AC 93 ms
71,708 KB
testcase_14 AC 91 ms
71,560 KB
testcase_15 AC 89 ms
71,580 KB
testcase_16 AC 89 ms
71,560 KB
testcase_17 AC 90 ms
71,572 KB
testcase_18 AC 91 ms
71,576 KB
testcase_19 AC 91 ms
71,420 KB
testcase_20 AC 90 ms
71,604 KB
testcase_21 AC 90 ms
71,680 KB
testcase_22 AC 91 ms
71,560 KB
testcase_23 AC 89 ms
71,536 KB
testcase_24 AC 90 ms
71,680 KB
testcase_25 AC 91 ms
71,864 KB
testcase_26 AC 90 ms
71,536 KB
testcase_27 AC 91 ms
71,560 KB
testcase_28 AC 92 ms
71,580 KB
testcase_29 AC 92 ms
71,408 KB
testcase_30 AC 89 ms
71,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys; input = sys.stdin.buffer.readline
sys.setrecursionlimit(10**7)
from collections import defaultdict
con = 10 ** 9 + 7; INF = float("inf")

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

#処理内容
def main():
	A, B = getlist()
	if A == 0 or B == 0:
		print(0)
		return
	AA, BB = A, B
	n = 0
	m = 0
	while True:
		if A % 10 == 0:
			n += 1
			A = int(A // 10)
		else:
			break

	while True:
		if B % 10 == 0:
			m += 1
			B = int(B // 10)
		else:
			break

	if abs(A) < 10 and abs(B) < 10 and n >= 2 and m >= 2:

		ans = int(A * B * (10 ** ((n + m) - 1)))
		print(ans)
		return

	ans = AA * BB
	if abs(ans) < 10 ** 8:
		print(ans)
	else:
		print("E")






if __name__ == '__main__':
	main()
0