結果

問題 No.1113 二つの整数 / Two Integers
コンテスト
ユーザー sigmani
提出日時 2022-02-09 15:23:30
言語 C++14
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 776 ms / 1,000 ms
コード長 517 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 518 ms
コンパイル使用メモリ 108,404 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2026-03-10 21:58:46
合計ジャッジ時間 3,569 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include<iostream>
#include<algorithm>
#include<string>
#include<math.h>
#include<bitset>
#include <vector>
#include<bitset>
#include <iomanip>
#include <map>
#include <set>
#include <stack>
#include <deque>
#include <climits>
#include <queue>
using namespace std;


int main() {
	
	long long A, B;
	cin >> A >> B;
	long long G = __gcd(A, B);
	long long D = pow(G, 0.5);
	long long count = 0;
	for (long long i = 1; i <= D; i++) {
		if (i * i == G)count++;
	}
	if (count > 0)cout << "Odd";
	else cout << "Even";


	
}
0