結果

問題 No.1114 足し算盆に返らず
ユーザー hamigakiko0721
提出日時 2020-07-17 22:50:42
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 367 bytes
コンパイル時間 1,430 ms
コンパイル使用メモリ 165,804 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-30 02:00:58
合計ジャッジ時間 15,461 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other WA * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using LL = long long;
using P = pair<int,int>;


int main(){
	LL A, B;
	cin >> A >>  B;
	LL ans = 0;
	for(LL i = 1; i * i <= min(A,B); i++){
		if(A%i==0&&B%i==0) {
			ans++;
		}
	}
	if(ans%2==0) cout << "Even" << endl;
	else cout << "Odd" << endl;
	return 0;	
}







0