結果

問題 No.722 100×100=1000
ユーザー 双六双六
提出日時 2020-08-30 02:48:38
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 671 bytes
コンパイル時間 184 ms
コンパイル使用メモリ 82,424 KB
実行使用メモリ 61,596 KB
最終ジャッジ日時 2024-04-27 01:28:51
合計ジャッジ時間 4,536 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
61,596 KB
testcase_01 AC 39 ms
54,916 KB
testcase_02 AC 39 ms
55,640 KB
testcase_03 AC 38 ms
55,400 KB
testcase_04 AC 38 ms
55,116 KB
testcase_05 AC 36 ms
54,184 KB
testcase_06 AC 36 ms
53,944 KB
testcase_07 AC 36 ms
54,392 KB
testcase_08 AC 37 ms
55,540 KB
testcase_09 AC 36 ms
54,500 KB
testcase_10 AC 36 ms
55,244 KB
testcase_11 AC 40 ms
53,776 KB
testcase_12 AC 37 ms
54,900 KB
testcase_13 TLE -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
権限があれば一括ダウンロードができます

ソースコード

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()
	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