Topic links:
codeforces 1288A Deadline
ideas:
that is seeking
Minimum value will exceed
by an inequality
Left formula can be obtained is the minimum value
Code:
#include<bits/stdc++.h>
using namespace std;
int main() {
#ifdef MyTest
freopen("Sakura.txt", "r", stdin);
#endif
int kase;
cin >> kase;
while(kase--){
int n, d;
cin >> n >> d;
int ans = ceil(2.0 * sqrt(1.0 * d) - 1);
if(ans <= n) puts("Yes");
else puts("No");
}
return 0;
}