#include <bits/stdc++.h>   using namespace std;   int main() {     int t;     cin >> t;     while (t--) {       long long n, d;       cin >> n >> d;       if (n >= d)         cout <<  YES  << endl;       else {         double i = 1, cnt = 0;         while (i <= n) {           int y = ceil(d / (i + 1)) + i;           if (y <= n) {             cout <<  YES  << endl;             ++cnt;             break;           }           ++i;         }         if (cnt == 0) cout <<  NO  << endl;       }     }   }   