/* */ #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; const ll INF=1LL<<60; typedef pair P; typedef pair PP; const ll MOD=998244353; ll gcd(ll x,ll y){ return y==0?x:gcd(y,x%y); } void solve(){ ll N; cin>>N; vector A(N); for(int i=0;i>A[i]; for(int i=0;i>T; for(int t=0;t