Accepted
Code
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define endl '\n'
void solve()
{
ll n,m; cin>>n>>m;
ll x,y,p,q; cin >> x >> y >> p >> q;
ll a = x % 2, b = y % 2, c = p % 2, d = q % 2;
ll h = a ^ b , j = c ^ d;
if (h == j) {
cout << "Yes\n";
}
else {
cout << "No\n";
}
}
int main()
{
ios::sync_with_stdio(false); cin.tie(0);
ll t; cin >> t;
while(t--) {
solve();
}
}
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 11:03:29
- Judged At
- 2024-12-07 11:03:29
- Judged By
- Score
- 100
- Total Time
- 58ms
- Peak Memory
- 1.02 MiB