結果
| 問題 | 
                            No.1113 二つの整数 / Two Integers
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2020-07-17 21:22:36 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 269 bytes | 
| コンパイル時間 | 568 ms | 
| コンパイル使用メモリ | 68,396 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-30 06:20:18 | 
| 合計ジャッジ時間 | 1,168 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 15 | 
コンパイルメッセージ
main.cpp:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main()
      | ^~~~
            
            ソースコード
#include<iostream>
#include<cmath>
using namespace std;
long gcd(long a,long b){return b?gcd(b,a%b):a;}
main()
{
	long A,B;cin>>A>>B;
	long G=gcd(A,B);
	long T=sqrt((double)G);
	while((T+1)*(T+1)<=G)T++;
	while((T-1)*(T-1)>=G)T--;
	cout<<(T*T==G?"Odd":"Even")<<endl;
}