結果

問題 No.1113 二つの整数 / Two Integers
ユーザー kaerufrogekokaerufrogeko
提出日時 2020-07-17 22:03:31
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 616 bytes
コンパイル時間 2,040 ms
コンパイル使用メモリ 187,388 KB
実行使用メモリ 13,644 KB
最終ジャッジ日時 2024-11-29 23:59:49
合計ジャッジ時間 13,015 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5 WA * 5 TLE * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

//debug
#define _GLIBCXX_DEBUG
//include
#include <bits/stdc++.h>
//using
using namespace std;
using ll = long long;
//define
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) v.begin(), v.end()
#define inf 1e9
//function
void solve()
{
    ll a, b;
    cin >> a >> b;
    if (a < b)
        swap(a, b);
    int ans = 0;
    ll r = a % b;
    ans++;
    for (int i = r / 2; i >= 1; i--)
    {
        if (r % i == 0)
            ans++;
    }
    if (ans % 2 == 0)
        cout << "Even" << endl;
    else
        cout << "Odd" << endl;
    return;
}
//main
int main()
{
    solve();
    return 0;
}
0