/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 540.0 KiB
#2 Wrong Answer 53ms 872.0 KiB
#3 Wrong Answer 61ms 812.0 KiB

Code

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

#define endl "\n"
#define trace(x) cout << #x << ": " << x << endl
int32_t main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);
    int t; cin >> t;
    while(t--)
    {
        int n, m; cin >> n >> m;
        int x, y; cin >> x >> y;
        int p, q; cin >> p >> q;
        int dif1 = abs(p - x);
        int dif2 = abs(q - y);
        if(dif1 == dif2 and p <= n and x <= n and q <= m and y <= m) 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 11:36:41
Judged At
2024-12-07 11:36:41
Judged By
Score
10
Total Time
61ms
Peak Memory
872.0 KiB