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 same =0;
if((st1%2==st2%2)) same = 1;
if((dst1%2==dst2%2) && same==1)
{
cout<<"Yes\n";
continue;
}
if(same==0)
{
if(dst1%2!=dst1%2)
{
cout<<"Yes\n";
}
else cout<<"No\n";
}
else cout<<"No\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:46:01
- Judged At
- 2024-12-07 11:46:01
- Judged By
- Score
- 10
- Total Time
- 301ms
- Peak Memory
- 872.0 KiB