Wrong Answer
Code
#include<bits/stdc++.h>
using namespace std;
#define int long long
int32_t main()
{
int t; cin>>t;
while(t--)
{
int n,m; cin>>n>>m;
int st1,st2; cin>>st1>>st2;
int dst1, dst2; cin>>dst1>>dst2;
int d1 = abs(dst1 - st1);
int d2 = abs(dst2 - st2);
if(d1!=d2)
{
cout<<"No\n";
}
else cout<<"Yes\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 10:27:52
- Judged At
- 2024-12-07 10:27:52
- Judged By
- Score
- 10
- Total Time
- 294ms
- Peak Memory
- 932.0 KiB