#include int cas,n,m,t,s; int a[2000010]; int main(){ scanf("%d",&cas); while (cas--){ scanf("%d",&n); for (int i=1;i<=n;i++) scanf("%d",&a[i]); for (int i=1;i