結果

問題 No.1113 二つの整数 / Two Integers
ユーザー mito_nya
提出日時 2020-07-30 20:59:58
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 488 bytes
コンパイル時間 952 ms
コンパイル使用メモリ 97,128 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-04 19:31:47
合計ジャッジ時間 1,636 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
#include<iostream>
#include<vector>
#include<math.h>
#include<queue>
#include<map>
#include<algorithm>
#include<string.h>
#include<functional>
#include<limits.h>
#include<stdlib.h>
#include<string>
#include<unordered_map>
#include <iomanip>
#include <cmath>
using namespace std;
/*最大公約数*/int gcd(int x,int y){return y?gcd(y,x%y):x;}
int main(){
  int A,B,C;
  string S="Even";
  cin>>A>>B;
  C=gcd(A,B);
  if(sqrt(C)*sqrt(C)==C) S="Odd";
  cout<<S;
return 0;}
0