/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 560.0 KiB
#2 Accepted 51ms 868.0 KiB
#3 Accepted 59ms 808.0 KiB
#4 Accepted 60ms 1016.0 KiB

Code

#include<bits/stdc++.h>
using namespace std;
#define ll long long

void solve()
{
    ll n, m; cin >> n >> m;

    ll x1, x2, y1, y2;
    cin >> x1  >> y1;
    cin >> x2  >> y2;

    ll ans = abs(x2 - x1) + abs(y2 - y1);

    cout << ((ans % 2 == 0)? "Yes": "No") << "\n";
}
int main(){
    ios::sync_with_stdio(0);
    cin.tie(0);
	int 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 10:26:35
Judged At
2024-12-07 10:26:35
Judged By
Score
100
Total Time
60ms
Peak Memory
1016.0 KiB