結果

問題 No.1714 Tag on Grid
ユーザー V_MelvilleV_Melville
提出日時 2021-10-22 22:13:15
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 266 bytes
コンパイル時間 1,858 ms
コンパイル使用メモリ 192,452 KB
最終ジャッジ日時 2025-01-25 03:48:24
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using std::cin;
using std::cout;

int main() {
	int h, w;
	cin >> h >> w;
	
	int ni, nj;
	cin >> ni >> nj;
	int zi, zj;
	cin >> zi >> zj;
	
	int d = abs(ni - zi) + abs(nj - zj);
	if (d % 2 == 1) puts("Yes");
	else puts("No");
	
	return 0;
}
0