/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 560.0 KiB
#2 Accepted 123ms 664.0 KiB
#3 Accepted 132ms 764.0 KiB
#4 Accepted 131ms 800.0 KiB

Code

#include <bits/stdc++.h>
using namespace std ;
#define int long long
#define opt() ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
const int N = 2e5+10 ;
const int mod= 1e9+7 ;
#define pb push_back()
#define mp make_pair

int32_t main()
{
    opt();
    int tt=1;
    cin>>tt;
    for(int tc=1;tc<=tt;tc++)
    {

       int n,m;
    cin>>n>>m;
    int x,y;
    cin>>x>>y;
    int p,q;
    cin>>p>>q;
    int a=abs(x-p);
    int b=abs(y-q);
    int sm=a+b;
    if(sm%2==0)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    }
    return 0;
}

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:17:06
Judged At
2024-12-07 10:17:06
Judged By
Score
100
Total Time
132ms
Peak Memory
800.0 KiB