結果
| 問題 |
No.1113 二つの整数 / Two Integers
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-17 21:39:20 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 378 ms / 1,000 ms |
| コード長 | 437 bytes |
| コンパイル時間 | 1,505 ms |
| コンパイル使用メモリ | 165,800 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-30 06:29:32 |
| 合計ジャッジ時間 | 3,230 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
signed main(){
int a, b;
cin >> a >> b;
int x = __gcd(a, b);
int i;
for(i = 1;i*i < x;i++);
if(i*i == x){
cout << "Odd" << endl;
}else{
cout << "Even" << endl;
}
return 0;
}