/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 532.0 KiB
#2 Accepted 2ms 324.0 KiB

Code

#include<bits/stdc++.h>
#define ll    long long int
#define yes   "YES"
#define no    "NO"
#define nl    "\n"
using namespace std;

void solve()
{
    int a,b,c;
    cin>>a>>b>>c;
     int mn=min({a,b,c});
     int mx=max({a,b,c});
     int mid=(a+b+c)-(mn+mx);
     if((mid+mn)>mx)
        cout<<yes<<nl;
     else
        cout<<no<<nl;
}

int main()
{
    int tc;
    cin >> tc;
    while (tc--)
    {
        solve();
    }

    return 0;
}

Information

Submit By
Type
Submission
Problem
P1047 3buj
Language
C++20 (G++ 13.2.0)
Submit At
2024-05-10 15:27:21
Judged At
2024-11-11 03:30:12
Judged By
Score
100
Total Time
2ms
Peak Memory
532.0 KiB