/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 2ms 512.0 KiB
#2 Accepted 254ms 868.0 KiB
#3 Accepted 295ms 668.0 KiB
#4 Accepted 298ms 812.0 KiB

Code

#include <bits/stdc++.h>
using namespace std;
#define optimize() ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define all(v) (v).begin(),(v).end();
#define rall(v) (v).rbegin(),(v).rend();
#define ll long long
#define endl '\n'
#define gap " "
#define bug(a) cerr<<#a<<":"<<endl;
int main()
{
    ll n;
    cin>>n;
    while(n--)
    {
        ll n1, m, x, y, p, q;
        cin>>n1>>m;
        cin >> x >> y;
        cin >> p >> q;
        if(abs(x-y)%2==abs(p-q)%2)
        {
            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:38:32
Judged At
2024-12-07 10:38:32
Judged By
Score
100
Total Time
298ms
Peak Memory
868.0 KiB