結果
| 問題 | 
                            No.1113 二つの整数 / Two Integers
                             | 
                    
| コンテスト | |
| ユーザー | 
                             itohdak
                         | 
                    
| 提出日時 | 2020-07-17 22:21:41 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 654 bytes | 
| コンパイル時間 | 1,841 ms | 
| コンパイル使用メモリ | 193,744 KB | 
| 最終ジャッジ日時 | 2025-01-11 22:54:20 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 15 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define REP(i,m,n) for(int i=(int)(m); i<(int)(n); i++)
#define rep(i,n) REP(i,0,n)
#define RREP(i,m,n) for(int i=(int)(m); i>=(int)(n); i--)
#define rrep(i,n) RREP(i,n-1,0)
#define all(v) v.begin(), v.end()
const int inf = 1e9+7;
const ll longinf = 1LL<<60;
const ll mod = 1e9+7;
ll gcd(ll x, ll y) {
  if(x > y)
    return gcd(y, x);
  else if(x == 0)
    return y;
  else
    return gcd(y % x, x);
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  ll a, b; cin >> a >> b;
  ll g = gcd(a, b);
  ll s = sqrt(g);
  cout << (s*s == g ? "Odd" : "Even") << "\n";
  return 0;
}
            
            
            
        
            
itohdak