#include #include #include #include #include #include #include #include #include using namespace std; #define fi first #define se second typedef long long LL; typedef long double LD; LL Q,len,c,T[100010]; vector get_array(LL first, LL N, LL tot){ tot-=(N-1); vector ans; ans.clear(); if (N==0) return ans; vector left,right; left.clear(),right.clear(); LL l1,r1,l2,r2; for (int i=0; il2) swap(l1,l2),swap(r1,r2); if (r1> Q; while (Q--){ cin >> len >> c; if (c>len*(len-1)/2 || c ans=get_array(1,len,c); if (ans.size()==0) cout << -1 << "\n"; else{ for (i=0; i