結果

問題 No.1113 二つの整数 / Two Integers
ユーザー umezoumezo
提出日時 2020-07-18 02:11:57
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 308 bytes
コンパイル時間 1,810 ms
コンパイル使用メモリ 202,212 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-05-07 22:37:58
合計ジャッジ時間 2,403 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,812 KB
testcase_01 WA -
testcase_02 AC 2 ms
6,944 KB
testcase_03 AC 2 ms
6,940 KB
testcase_04 AC 2 ms
6,940 KB
testcase_05 AC 2 ms
6,944 KB
testcase_06 AC 2 ms
6,944 KB
testcase_07 AC 1 ms
6,940 KB
testcase_08 AC 2 ms
6,944 KB
testcase_09 AC 1 ms
6,940 KB
testcase_10 AC 2 ms
6,940 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 2 ms
6,940 KB
testcase_15 AC 2 ms
6,944 KB
testcase_16 AC 2 ms
6,940 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
In file included from /home/linuxbrew/.linuxbrew/Cellar/gcc@12/12.3.0/include/c++/12/x86_64-pc-linux-gnu/bits/stdc++.h:84,
                 from main.cpp:5:
In function 'constexpr _Res std::__detail::__abs_r(_Tp) [with _Res = long long int; _Tp = long long int]',
    inlined from 'constexpr std::common_type_t<_Mn, _Nn> std::gcd(_Mn, _Nn) [with _Mn = long long int; _Nn = long long int]' at /home/linuxbrew/.linuxbrew/Cellar/gcc@12/12.3.0/include/c++/12/numeric:172:46,
    inlined from 'int main()' at main.cpp:12:11:
/home/linuxbrew/.linuxbrew/Cellar/gcc@12/12.3.0/include/c++/12/numeric:106:7: warning: 'b' is used uninitialized [-Wuninitialized]
  106 |       if (__val >= 0)
      |       ^~
main.cpp: In function 'int main()':
main.cpp:9:8: note: 'b' was declared here
    9 |   ll a,b;
      |        ^

ソースコード

diff #

#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(v) v.begin(), v.end()
typedef long long ll;

#include <bits/stdc++.h>
using namespace std;

int main() {
  ll a,b;
  cin>>a,b;
  
  ll n=gcd(a,b);
  ll m=sqrt(n);
  
  if(m*m==n) cout<<"Odd"<<endl;
  else cout<<"Even"<<endl;
    
  return 0;
}
0