結果
問題 |
No.1113 二つの整数 / Two Integers
|
ユーザー |
![]() |
提出日時 | 2020-07-20 09:02:17 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 378 bytes |
コンパイル時間 | 1,527 ms |
コンパイル使用メモリ | 170,420 KB |
実行使用メモリ | 16,960 KB |
最終ジャッジ日時 | 2024-12-23 02:40:49 |
合計ジャッジ時間 | 22,473 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 TLE * 10 |
ソースコード
#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( int 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; }