#include #include using namespace atcoder; using mint=modint998244353; using namespace std; using ll=long long; using ull=unsigned long long; #define rep(i,a,b) for(ll i=(ll)(a);i<(ll)(b);i++) #define rrep(i,a,b) for(ll i=(ll)(a-1);i>=(ll)(b);i--) #define MOD 998244353 //#define MOD 1000000007 #define INF 1e18 #define Pair pair //#define PI numbers::pi //#define E numbers::e template bool chmax(T& a,T b){if(a bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;} ll dx[4]={0,1,0,-1}; ll dy[4]={1,0,-1,0}; int main(){ ll t; cin >> t; while(t--){ ll n; cin >> n; long double s; cin >> s; vector p; rep(i,1,1001){ ll a=ceil(s*i),b=ceil((s+0.001)*i); if(a