結果
問題 | No.1714 Tag on Grid |
ユーザー |
![]() |
提出日時 | 2022-02-10 22:10:50 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 320 bytes |
コンパイル時間 | 2,472 ms |
コンパイル使用メモリ | 191,616 KB |
最終ジャッジ日時 | 2025-01-27 21:00:27 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 |
ソースコード
#include<bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0;i<n;i++) typedef long long ll; #define int long long signed main(){ int h,w;cin>>h>>w; int ni,nj;cin>>ni>>nj; int zi,zj;cin>>zi>>zj; int dif=abs(ni-zi)+abs(nj-zj); if(dif%2==0) cout<<"No"<<endl; else cout<<"Yes"<<endl; return 0; }