結果
| 問題 | 
                            No.722 100×100=1000
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2018-11-08 10:35:00 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                            (最新)
                                AC
                                 
                             
                            (最初)
                            
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 439 bytes | 
| コンパイル時間 | 117 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-10-12 11:15:04 | 
| 合計ジャッジ時間 | 2,067 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 26 WA * 1 | 
ソースコード
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(' ')
	absA=str(abs(int(a)))
	absB=str(abs(int(b)))
	if int(absA)!=0 and int(absB)!=0:
		if int(a)%100==0 and int(b)%100==0 and absA[1]=='0' and absB[1]=='0':
			mental(int(a),int(b))
		else:
			calc(int(a),int(b))
	else:
		calc(int(a),int(b))