結果
| 問題 | No.795 Restrictions!!!!!!!!!!!!!! |
| コンテスト | |
| ユーザー |
d_sei
|
| 提出日時 | 2019-08-16 18:04:54 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 546 bytes |
| 記録 | |
| コンパイル時間 | 614 ms |
| コンパイル使用メモリ | 83,584 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-10 16:59:36 |
| 合計ジャッジ時間 | 1,334 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 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