結果

問題 No.722 100×100=1000
ユーザー koukonko
提出日時 2018-08-24 14:19:08
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 468 bytes
コンパイル時間 710 ms
コンパイル使用メモリ 75,216 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-12 11:04:13
合計ジャッジ時間 1,628 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 20 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <math.h>
#include <string>
#include <algorithm>
#include <sstream>
#include <iomanip>

typedef long long ll;
#define MIN(x, y) (x < y ? x : y)
#define MAX(x, y) (x > y ? x : y)

using namespace std;

int main(){
	ll A, B;
	cin >> A >> B;

	if(A % 10 == 0 && B % 10 == 0){
		cout << A * B / 10 << endl;
	} else {
		ll ans = A * B;
		if(ans > 99999999 || ans < -99999999){
			cout << "E" << endl;
		} else {
			cout << ans << endl;
		}
	}
}
0