結果
| 問題 |
No.1113 二つの整数 / Two Integers
|
| コンテスト | |
| ユーザー |
a01sa01to
|
| 提出日時 | 2024-05-20 00:11:19 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 522 bytes |
| コンパイル時間 | 3,031 ms |
| コンパイル使用メモリ | 246,108 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-20 17:31:03 |
| 合計ジャッジ時間 | 3,954 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "settings/debug.cpp"
#define _GLIBCXX_DEBUG
#else
#define Debug(...) void(0)
#endif
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using ull = unsigned long long;
inline bool isSqr(ll n) {
ll x = sqrt(n);
for (ll i = x - 1; i <= x + 1; i++) {
if (i * i == n) return true;
}
return false;
}
int main() {
ll a, b;
cin >> a >> b;
ll g = gcd(a, b);
cout << (isSqr(g) ? "Odd" : "Even") << endl;
return 0;
}
a01sa01to