結果
問題 |
No.1113 二つの整数 / Two Integers
|
ユーザー |
![]() |
提出日時 | 2023-10-02 13:20:52 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 500 bytes |
コンパイル時間 | 3,720 ms |
コンパイル使用メモリ | 250,976 KB |
最終ジャッジ日時 | 2025-02-17 04:00:57 |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 WA * 6 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace atcoder; using namespace std; using ll=long long; using ld=long double; ld pie=3.141592653589793; ll mod=1000000007; ll inf=1000000000000000;//10^17 ll gcd(ll a, ll b) { a = abs(a); b = abs(b); if (a < b)swap(a, b); while (b) { ll r=a%b; a=b; b=r; } return a; } int main(){ ll a,b; cin >> a >> b; if (gcd(a,b)==1) { cout << "Odd" << endl; }else{ cout << "Even" << endl; } }