結果
問題 |
No.795 Restrictions!!!!!!!!!!!!!!
|
ユーザー |
![]() |
提出日時 | 2019-08-16 18:04:16 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 536 bytes |
コンパイル時間 | 680 ms |
コンパイル使用メモリ | 68,780 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-22 10:45:04 |
合計ジャッジ時間 | 1,360 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 20 |
ソースコード
#include<iostream> #include<algorithm> #include <vector> using namespace std; int main() { int N, M; cin >> N >> M; int A = 0; int B = 0; int C = 0; if (M >= 10) { A++; } if (M % 2 == 0) { B++; } if (N % 2 == 0) { C++; } if (A && B && C) { cout << "Yes" << endl; } else if (A && B && !C) { cout << "Yes" << endl; } else if (A && !B && C) { cout << "No" << endl; } else if (A && !B && !C) { cout << "No" << endl; } else if (!A&& B && C) { cout << "Yes" << endl; } else { cout << "No" << endl; } }