結果

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

ソースコード

diff #

// 想定解 C++

#include <bits/stdc++.h>

using namespace std;

int main() {
    int H, W;
    int ni, nj;
    int zi, zj;
    
    cin >> H >> W;
    cin >> ni >> nj;
    cin >> zi >> zj;
    
    if ((abs(ni - zi) + abs(nj - zj)) % 2 == 1) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }
    
    return 0;
}
0