#include #include #define N 600000 int a[N]; int main() { int t; scanf("%d", &t); while(t--) { int n; scanf("%d", &n); for(int i=0; i