結果

問題 No.1714 Tag on Grid
ユーザー 👑 CleyL
提出日時 2023-04-21 09:37:56
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 5 ms / 2,000 ms
コード長 272 bytes
コンパイル時間 523 ms
コンパイル使用メモリ 66,876 KB
最終ジャッジ日時 2025-02-12 10:52:13
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
    int h,w;cin>>h>>w;
    if(h == 1 || w == 1){
        cout << "Yes" << endl;
        return 0;
    }
    int a,b,c,d;cin>>a>>b>>c>>d;
    if(abs(c-a+d-b)%2 == 1)cout << "Yes" << endl;
    else cout << "No" << endl;
}
0