結果
| 問題 |
No.1113 二つの整数 / Two Integers
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-17 22:51:21 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 367 bytes |
| コンパイル時間 | 1,504 ms |
| コンパイル使用メモリ | 165,576 KB |
| 実行使用メモリ | 13,824 KB |
| 最終ジャッジ日時 | 2024-11-30 02:04:09 |
| 合計ジャッジ時間 | 27,247 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 2 TLE * 13 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using LL = long long;
using P = pair<int,int>;
int main(){
LL A, B;
cin >> A >> B;
LL ans = 0;
for(LL i = 1; i * i <= min(A,B); i++){
if(A%i==0&&B%i==0) {
ans++;
}
}
if(ans%2==0) cout << "Even" << endl;
else cout << "Odd" << endl;
return 0;
}