/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 588.0 KiB
#2 Wrong Answer 63ms 820.0 KiB
#3 Wrong Answer 61ms 840.0 KiB

Code

#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
    ios ::sync_with_stdio(false);
    cin.tie(NULL);
    int t;
    cin>>t;
    while(t--)
    {
        int x,y,a,b,p,q;
        cin>>x>>y>>a>>b>>p>>q;
        int d1=abs(x-p),d2=abs(y-q);
        if(d1==d2)
        {
            cout<<"Yes\n";
        }
        else if(((d1%2==0) &&(d2%2==0)) ||((d1%2==1 && d2%2==1)))
        {
            cout<<"Yes\n";
        }
        else
        {
            cout<<"No\n";
        }
    }
    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 11:25:38
Judged At
2024-12-07 11:25:39
Judged By
Score
10
Total Time
63ms
Peak Memory
840.0 KiB