Qualify The Round Solution || Codechef Starters - 28

         

Qualify The Round Solution 

Codechef Starters - 28
Problem Code : QUALIFY

Solution :

#include <bits/stdc++.h>
#define ll long long int
#define ull unsigned long long int
using namespace std;

void solve()
{
    ll x, a, b;
    cin >> x >> a >> b;
    if ((a + 2 * b) >= x)
    {
        cout << "Qualify\n";
    }
    else
    {
        cout << "NotQualify\n";
    }
}

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

Comments