結果
問題 | No.1113 二つの整数 / Two Integers |
ユーザー |
|
提出日時 | 2020-07-17 21:26:08 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 271 bytes |
コンパイル時間 | 1,580 ms |
コンパイル使用メモリ | 166,680 KB |
実行使用メモリ | 16,848 KB |
最終ジャッジ日時 | 2024-11-29 21:08:57 |
合計ジャッジ時間 | 28,135 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 2 TLE * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { long long A,B; long long H=0; cin>>A>>B; for(long long X=1;X<=__gcd(A,B);X++){ if(A%X==0&&B%X==0){ H++; } } if(H%2==0){ cout<<"Even"<<endl; } else{ cout<<"Odd"<<endl; } }