結果

問題 No.722 100×100=1000
ユーザー Guest
提出日時 2018-11-07 18:15:38
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 332 bytes
コンパイル時間 508 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-10-12 11:14:58
合計ジャッジ時間 2,308 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 2
other AC * 25 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

def calc(a,b):
	ans=a*b
	if -99999999 > ans or 99999999 < ans:
		print('E')
	else:
		print(int(ans))

def mental(a,b):
	ans=(a*b)/10
	print(int(ans))

if __name__ == '__main__':
	a,b=input().split(' ')
	if int(a)%100==0 and int(a)//10 < 10 and int(b)%100==0 and int(b)//10 < 10:
			mental(int(a),int(b))
	else:
		calc(int(a),int(b))
0