1 solutions
-
0Bullet LV 4 MOD @ 2024-03-29 12:08:18
Author Code (Kamonasish Roy) :
#include<bits/stdc++.h>
using namespace std;
const long long M=2e5+10,MOD=2000000007;
typedef long long ll;
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
int t=1;
cin>>t;
while(t--){
int a,b,c;
cin>>a>>b>>c;
if(a+b>c && a+c > b && b+c > a)cout<<"YES\n";
else cout<<"NO\n";
}
return 0;
}Tester Code ( Jahirul Islam Hridoy) :
void solve()
{
int a , b , c ; cin >> a >> b >> c ;
if(a + b > c && a + c > b && b + c > a) cout << "YES\n" ;
else cout << "NO\n" ;
}
int main()
{
Heart
int t ; cin >> t ; while(t--) solve() ;
}
- 1
Information
- ID
- 1047
- Difficulty
- 2
- Category
- Beginners Click to Show
- Tags
- (None)
- # Submissions
- 90
- Accepted
- 53
- Accepted Ratio
- 59%
- Uploaded By