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;
if((st1==dst1 && st2-1==dst2) || (st1-1==dst1 && dst2==st2) || (st1==dst1 && st2+1==dst2) || (st1+1==dst1 && st2==dst2))
{
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 11:29:32
- Judged At
- 2024-12-07 11:29:32
- Judged By
- Score
- 10
- Total Time
- 291ms
- Peak Memory
- 896.0 KiB