/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 540.0 KiB
#2 Wrong Answer 244ms 992.0 KiB
#3 Wrong Answer 292ms 828.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-p)==abs(y-q))
        {
            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:28:54
Judged At
2024-12-07 10:28:54
Judged By
Score
10
Total Time
292ms
Peak Memory
992.0 KiB