結果
問題 |
No.1113 二つの整数 / Two Integers
|
ユーザー |
|
提出日時 | 2020-07-17 22:43:57 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 359 bytes |
コンパイル時間 | 1,561 ms |
コンパイル使用メモリ | 166,888 KB |
実行使用メモリ | 16,960 KB |
最終ジャッジ日時 | 2024-11-30 01:44:25 |
合計ジャッジ時間 | 27,196 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 2 TLE * 13 |
ソースコード
#include<bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) using LL = long long; using P = pair<int,int>; int main(){ LL A, B; cin >> A >> B; int ans = 0; for(LL i = 1; i * i <= min(A,B); i++){ if(A%i==0&&B%i==0) ans++; } if(ans%2==0) cout << "Even" << endl; else cout << "Odd" << endl; return 0; }