結果
| 問題 |
No.1556 Power Equality
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-22 08:49:42 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 349 bytes |
| コンパイル時間 | 4,200 ms |
| コンパイル使用メモリ | 250,252 KB |
| 最終ジャッジ日時 | 2025-02-20 10:52:06 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 4 WA * 5 |
コンパイルメッセージ
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;
| ^
ソースコード
#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;
}