結果

問題 No.1556 Power Equality
ユーザー yansi819yansi819
提出日時 2024-03-22 08:49:42
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 349 bytes
コンパイル時間 4,164 ms
コンパイル使用メモリ 262,296 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-03-22 08:49:48
合計ジャッジ時間 5,208 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 2 ms
6,676 KB
testcase_05 AC 2 ms
6,676 KB
testcase_06 AC 2 ms
6,676 KB
testcase_07 WA -
testcase_08 AC 2 ms
6,676 KB
testcase_09 AC 1 ms
6,676 KB
testcase_10 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:10:3: warning: 'A' is used uninitialized [-Wuninitialized]
   10 |   if (A == B) cout << "Yes" << endl;
      |   ^~
main.cpp:9:7: note: 'A' was declared here
    9 |   int A, B;
      |       ^
main.cpp:10:3: warning: 'B' is used uninitialized [-Wuninitialized]
   10 |   if (A == B) cout << "Yes" << endl;
      |   ^~
main.cpp:9:10: note: 'B' was declared here
    9 |   int A, B;
      |          ^

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll = long long;
using ld = long double;

int main() {
  int A, B;
  if (A == B) cout << "Yes" << endl;
  else if (A == 2 && B == 4) cout << "Yes" << endl;
  else if (A == 4 && B == 2) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}
0