結果
| 問題 |
No.1714 Tag on Grid
|
| コンテスト | |
| ユーザー |
square1001
|
| 提出日時 | 2021-10-22 21:22:56 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 366 bytes |
| コンパイル時間 | 588 ms |
| コンパイル使用メモリ | 73,020 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-23 04:31:21 |
| 合計ジャッジ時間 | 1,424 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 WA * 10 |
ソースコード
#include <cmath>
#include <string>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int H, W, xa, ya, xb, yb;
cin >> H >> W >> xa >> ya >> xb >> yb;
if ((xa + ya) % 2 == (xb + yb) % 2) {
cout << "No" << endl;
}
else if (H >= 3 && W >= 3) {
cout << "No" << endl;
}
else {
cout << "Yes" << endl;
}
return 0;
}
square1001