結果
| 問題 |
No.1113 二つの整数 / Two Integers
|
| コンテスト | |
| ユーザー |
Dske
|
| 提出日時 | 2020-07-17 21:28:50 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 498 bytes |
| コンパイル時間 | 1,446 ms |
| コンパイル使用メモリ | 165,892 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-29 21:28:42 |
| 合計ジャッジ時間 | 4,601 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 15 |
ソースコード
#include <bits/stdc++.h>
#define rep(i, n) for(int i=0; i<(int)(n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main(){
int a, b;
cin >> a >> b;
int x = 0;
if(a > b){
rep(i,a+1){
if(a % i == 0 && b % i == 0) x++;
}
}else{
rep(i,b+1){
if(a % i == 0 && b % i == 0) x++;
}
}
string ans;
if(x % 2 == 0) ans = "Even";
else ans = "Odd";
cout << ans << endl;
return 0;
}
Dske