#include using namespace std; typedef long long ll; ll gcd(ll a,ll b){ if(a> t; while(t){ t--; int i,j,n; cin >> n; for(i=0;i> a[i]; for(i=0;i