Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- #define li long long int
- void test_case()
- {
- li n, d;
- cin>>n>>d;
- if((1-n)*(1-n) - 4*(d-n) >= 0)
- cout<<"YES"<<endl;
- else
- cout<<"NO"<<endl;
- }
- int main()
- {
- li t = 1;
- cin>>t;
- while(t--)
- test_case();
- return 0;
- }
Add Comment
Please, Sign In to add comment