Roster990

Untitled

Jan 15th, 2020
461
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define li long long int
  4.  
  5. void test_case()
  6. {
  7.     li n, d;
  8.     cin>>n>>d;
  9.    
  10.     if((1-n)*(1-n) - 4*(d-n) >= 0)
  11.         cout<<"YES"<<endl;
  12.     else
  13.         cout<<"NO"<<endl;
  14. }
  15.  
  16. int main()
  17. {
  18.     li t = 1;
  19.     cin>>t;
  20.     while(t--)
  21.         test_case();
  22.     return 0;
  23. }
RAW Paste Data