Skip to content

Commit

Permalink
Merge pull request vishal8113#172 from Druv21/master
Browse files Browse the repository at this point in the history
Codechef Solution of Cup Finals
  • Loading branch information
vishal8113 authored Oct 31, 2022
2 parents e4886d0 + 8edde34 commit a4a035c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CPP/Cup Finals.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include <bits/stdc++.h>
using namespace std;

int main() {
int t,x,y,d;
cin>>t;
while(t--){
cin>>x>>y>>d;
if(abs(x-y)>d)
cout<<"NO"<<"\n";
else
cout<<"YES"<<"\n";
}
return 0;
}

0 comments on commit a4a035c

Please sign in to comment.