結果

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

ソースコード

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 && B > 10 && 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