#include using namespace std; bool build(long len, long c, vector& res, int start) { long max_c = len*(len-1)/2; if (c > max_c) return false; if (c == max_c) { res.resize(len); for(int i=0; i> T; for(int t = 0; t < T; ++t){ long len, c; cin >> len >> c; vector res; if (build(len, c, res, 1)) { for(int i=0; i