結果

問題 No.722 100×100=1000
ユーザー SSRS
提出日時 2020-08-26 07:30:40
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 435 bytes
コンパイル時間 692 ms
コンパイル使用メモリ 73,500 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-06 20:27:10
合計ジャッジ時間 1,879 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 23 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <set>
using namespace std;
int main(){
	int A, B;
	cin >> A >> B;
	set<int> st;
	for (int i = 1; i <= 9; i++){
		int tmp = i * 10;
		for (int j = 0; j < 6; j++){
			tmp *= 10;
			st.insert(tmp);
			st.insert(- tmp);
		}
	}
	if (st.count(A) && st.count(B)){
		cout << (long long) A * B / 10 << endl;
	} else if ((long long) A * B < 1000000000){
		cout << A * B << endl;
	} else {
		cout << 'E' << endl;
	}
}
0