#include using namespace std; using ll = long long; void solve() { int n; cin>>n; vectorv; for(int i=0; i>x; v.push_back(x); } int d=abs(v[0]-v[n-1]); int x=1, y=n; for(int i=1; i> TC; // cin.ignore(); while (TC--) solve(); }