Wrong Answer
Code
#include<bits/stdc++.h>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
long long n,i,j,k,cnt=0,f=0,ans=0;
cin>>n>>k;
long long a,b,c,d;
cin>>a>>b>>c>>d;
if(abs(c-a)==abs(d-b)){
cout<<"Yes"<<"\n";
}else{
cout<<"No"<<"\n";
}
}
}
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:59:34
- Judged At
- 2024-12-07 10:59:34
- Judged By
- Score
- 10
- Total Time
- 304ms
- Peak Memory
- 792.0 KiB