結果
問題 |
No.1113 二つの整数 / Two Integers
|
ユーザー |
|
提出日時 | 2020-07-22 22:01:05 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 357 bytes |
コンパイル時間 | 2,080 ms |
コンパイル使用メモリ | 198,156 KB |
最終ジャッジ日時 | 2025-01-12 02:43:38 |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 TLE * 6 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0; i<(n); i++) typedef long long ll; int main(){ ll a,b; cin>>a>>b; ll n=gcd(a,b); set<ll> st; for(ll i=1; i*i<=n; i++){ if(n%i==0) {st.insert(i); st.insert(n/i);} } if(st.size()==0) cout<<"Odd"<<endl; else if(st.size()%2==0) cout<<"Even"<<endl; else cout<<"Odd"<<endl; }