結果
問題 | No.1113 二つの整数 / Two Integers |
ユーザー |
|
提出日時 | 2020-07-24 04:11:15 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 524 bytes |
コンパイル時間 | 705 ms |
コンパイル使用メモリ | 74,300 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-24 05:57:30 |
合計ジャッジ時間 | 1,375 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
#include <algorithm>#include <cmath>#include <cstdio>#include <deque>#include <iostream>#include <map>#include <numeric>#include <queue>#include <set>#include <stack>#include <string>#include <vector>using namespace std;typedef long long ll;#define MOD 1000000007ll gcd(ll a, ll b) { return b == 0 ? a : gcd(b, a % b); }int main() {ll a, b;cin >> a >> b;ll g = gcd(a, b);ll h = sqrtl(g);if (h * h == g) {cout << "Odd" << endl;} else {cout << "Even" << endl;}return 0;}