結果
問題 |
No.1114 足し算盆に返らず
|
ユーザー |
|
提出日時 | 2020-07-17 22:50:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 359 bytes |
コンパイル時間 | 1,748 ms |
コンパイル使用メモリ | 166,016 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-30 02:02:46 |
合計ジャッジ時間 | 16,353 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 26 |
ソースコード
#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; LL 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; }