結果

問題 No.1113 二つの整数 / Two Integers
ユーザー sigmanisigmani
提出日時 2022-02-09 15:23:30
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
TLE  
実行時間 -
コード長 517 bytes
コンパイル時間 743 ms
コンパイル使用メモリ 90,580 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-09-07 00:00:39
合計ジャッジ時間 5,425 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 18 ms
4,376 KB
testcase_03 AC 137 ms
4,380 KB
testcase_04 AC 220 ms
4,380 KB
testcase_05 AC 108 ms
4,376 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 TLE -
testcase_09 TLE -
testcase_10 AC 1 ms
4,384 KB
testcase_11 AC 2 ms
4,380 KB
testcase_12 AC 245 ms
4,376 KB
testcase_13 AC 2 ms
4,376 KB
testcase_14 AC 17 ms
4,380 KB
testcase_15 AC 270 ms
4,380 KB
testcase_16 AC 2 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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