結果
問題 | No.1113 二つの整数 / Two Integers |
ユーザー |
![]() |
提出日時 | 2020-07-17 22:03:31 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 616 bytes |
コンパイル時間 | 1,815 ms |
コンパイル使用メモリ | 188,212 KB |
実行使用メモリ | 14,016 KB |
最終ジャッジ日時 | 2024-05-07 08:41:50 |
合計ジャッジ時間 | 4,241 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
10,140 KB |
testcase_01 | AC | 2 ms
6,940 KB |
testcase_02 | WA | - |
testcase_03 | TLE | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
ソースコード
//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; }