結果
| 問題 |
No.795 Restrictions!!!!!!!!!!!!!!
|
| コンテスト | |
| ユーザー |
d_sei
|
| 提出日時 | 2019-08-16 18:04:54 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 546 bytes |
| コンパイル時間 | 630 ms |
| コンパイル使用メモリ | 69,272 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-22 10:46:24 |
| 合計ジャッジ時間 | 1,451 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 20 |
ソースコード
#include<iostream>
#include<algorithm>
#include <vector>
using namespace std;
int main() {
long long 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;
}
}
d_sei