結果
問題 |
No.1113 二つの整数 / Two Integers
|
ユーザー |
![]() |
提出日時 | 2020-07-20 09:04:51 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 384 bytes |
コンパイル時間 | 2,330 ms |
コンパイル使用メモリ | 170,108 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-12-23 02:43:47 |
合計ジャッジ時間 | 14,957 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 TLE * 6 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { long long A, B; cin >> A >> B; long long gcd = __gcd( A, B ); vector<long long> d; for( long long x = 1; x * x <= gcd; x++ ) { if( gcd % x == 0 ) { d.push_back( x ); if( x != gcd / x ) { d.push_back( gcd / x ); } } } string ans = "Even"; if( d.size() % 2 ) ans = "Odd"; cout << ans << endl; }