Accepted
Code
#include <bits/stdc++.h>
using namespace std;
int main() {
int t; cin >> t;
while (t--)
{
int m, n; cin >> m >> n;
int x, y; cin >> x >> y;
int p, q; cin >> p >> q;
int xdif = abs(x - p);
int ydif = abs(y - q);
if((xdif + ydif) % 2 == 0) {
cout << "Yes" << endl;
}
else {
cout << "No" << 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:54:57
- Judged At
- 2024-12-07 10:54:57
- Judged By
- Score
- 100
- Total Time
- 310ms
- Peak Memory
- 908.0 KiB