Accepted
Code
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main()
{
int t; cin>>t;
up:
while (t--)
{
ll n,m;
cin>>n>>m;
ll x,y,p,q;
cin>>x>>y>>p>>q;
ll a=abs(x-p);
ll b=abs(y-q);
if((a%2==0 and b&1) or (b%2==0 and a&1)){
cout<<"No"<<endl;
}
else{
cout<<"Yes"<<endl;
}
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1115 Destination
- Contest
- LU IUJPC : Sylhet Division 2024, Mock Round
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2024-12-07 10:47:04
- Judged At
- 2024-12-07 10:47:04
- Judged By
- Score
- 100
- Total Time
- 513ms
- Peak Memory
- 872.0 KiB