Chef and NextGen Solution || Codechef February Long Challenge 2022 - II

  

 Chef and NextGen Solution 

Codechef February Long Challenge 2022 - II
Problem Code : HELIUM3

Solution :

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

void solve()
{
    ll a, b, x, y;
    cin >> a >> b >> x >> y;
    ll total_power = y * x;
    ll power_need = a * b;
    if (power_need <= total_power)
    {
        cout << "Yes\n";
    }
    else
    {
        cout << "No\n";
    }
}

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

Comments