CodeForces - 1380CodeForces - 1380
CodeForces - 1380A - Three IndicesO(n^2)暴力int t,n,a[maxn];bool ok[maxn];int main(){ scanf("%d",&t); while(t--) { bool mark=false; scanf("%d",&n); rep(i,1,n)scanf("%d",&am