結果
問題 | No.1113 二つの整数 / Two Integers |
ユーザー |
![]() |
提出日時 | 2020-10-13 01:22:09 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 297 bytes |
コンパイル時間 | 2,360 ms |
コンパイル使用メモリ | 193,320 KB |
最終ジャッジ日時 | 2025-01-15 06:58:53 |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int64_t A, B; cin >> A >> B; int64_t g = gcd(A, B); int64_t h = sqrt(g); if (h * h == g) { cout << "Odd" << '\n'; } else { cout << "Even" << '\n'; } return 0; }