結果

問題 No.1714 Tag on Grid
ユーザー square1001
提出日時 2021-10-22 21:23:32
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 309 bytes
コンパイル時間 634 ms
コンパイル使用メモリ 72,772 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-23 04:32:51
合計ジャッジ時間 1,497 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#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 {
		cout << "Yes" << endl;
	}
	return 0;
}
0