Wrong Answer
Code
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define endl "\n"
#define pii pair<int, int>
#define int long long
void solve() {
int n, m; cin>>n>>m;
int x, y, p, q; cin>>x>>y>>p>>q;
int f = (abs(x - p) == abs(y - q));
cout<<(f ? "Yes" : "No")<<endl;
}
signed main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t = 1; cin>>t;
for(int i = 1; i <= t; i++) {
// cerr<<"Case "<<i<<": \n";
solve();
}
}
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:12:48
- Judged At
- 2024-12-07 10:12:48
- Judged By
- Score
- 10
- Total Time
- 61ms
- Peak Memory
- 836.0 KiB