#include // cout, endl, cin #include // string, to_string, stoi #include // vector #include // min, max, swap, sort, reverse, lower_bound, upper_bound #include // pair, make_pair #include // tuple, make_tuple #include // int64_t, int*_t #include // printf #include // map #include // queue, priority_queue #include // set #include // stack #include // deque #include // unordered_map #include // unordered_set #include // bitset #include // isupper, islower, isdigit, toupper, tolower #include #include #include #include #include #include #include #include #include // #include // using namespace atcoder; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep1(i, n) for (int i = 1; i <= (int)(n); i++) #define repl(i, l, r) for (int i = l; i < (int)(r); i++) #define all(a) a.begin(), a.end() #define Pii pair #define Pll pair #define INFi 1000000001 #define INFl 1000000000000000001 #define ll long long using namespace std; template inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } template inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template void printArray(vector &A) { for (T &a : A) { cout << a << " "; } cout << endl; } template void printArrayln(vector &A) { for (T &a : A) { cout << a << endl; } } template std::ostream &operator<<(std::ostream &out, const pair &A) { cout << "{" << A.first << "," << A.second << "}"; return out; } template std::ostream &operator<<(std::ostream &out, const map &M) { for (const auto &A : M) { cout << "{" << A.first << "," << A.second << "}"; } return out; } template std::ostream &operator<<(std::ostream &out, const set &M) { cout << "{"; for (const auto &A : M) { cout << A << ", "; } cout << "}" << endl; return out; } template std::ostream &operator<<(std::ostream &out, const multiset &M) { cout << "{"; for (const auto &A : M) { cout << A << ", "; } cout << "}" << endl; return out; } template std::ostream &operator<<(std::ostream &out, const vector &A) { for (const T &a : A) { cout << a << " "; } return out; } void print() { cout << endl; } template void print(Head H, Tail... T) { cout << H << " "; print(T...); } template std::istream &operator>>(std::istream &in, vector &A) { for (T &a : A) { std::cin >> a; } return in; } void solve(){ long N,X;cin>>N>>X; long a = 0; long sum = 0; vector A; for(int i=0;iX){ cout<<-1<sync_with_stdio(0); int t;cin>>t; rep(i,t){ solve(); } }