#include #include #include #include #include #include #include #include #include #include #include #pragma comment(linker, "/STACK:102400000,102400000") using namespace std; typedef long long LL; typedef unsigned long long ULL; const int MN = 100000 + 10; const int ME = 1000000 + 10; const LL mod = 998244353LL; const double pi = acos(-1.0); const int Intmax = (~(1 << 31)); const int Intmin = (1 << 31); const LL LLmax = (~(1LL << 63)); const LL LLmin = (1LL << 63); const ULL ULLmax = (~(0ULL)); int a[MN]; int main() { #ifndef ONLINE_JUDGE freopen("1.cpp", "r", stdin); #endif // ONLINE_JUDGE int t; scanf("%d",&t); while(t--){ int n; int i; scanf("%d",&n); for(i=0;iMax){ Max=pans; p=i; q=i+1; } } LL ans=0; for(i=0;i=0&&i+1