結果

問題 No.1714 Tag on Grid
ユーザー elphe
提出日時 2024-12-06 18:14:02
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 33 ms / 2,000 ms
コード長 322 bytes
コンパイル時間 645 ms
コンパイル使用メモリ 76,796 KB
最終ジャッジ日時 2025-02-26 11:15:09
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cstdint>
#include <cmath>

using namespace std;

int main()
{
	cin.tie(nullptr);
	ios::sync_with_stdio(false);

	int32_t H, W, n_i, n_j, z_i, z_j;
	cin >> H >> W >> n_i >> n_j >> z_i >> z_j;

	if ((abs(n_i - z_i) + abs(n_j - z_j)) & 1)
		cout << "Yes\n";
	else
		cout << "No\n";

	return 0;
}
0