C - Three Parts of the Array -(数组左-右搜索)_b - three parts of the array-CSDN博客

网站介绍:文章浏览阅读244次。#include<bits/stdc++.h>using namespace std;#define maxn 20005long long pre,post,ans=0;int a[maxn],n;int main(){ cin>>n; for(int i=0; i<n; i++) cin>>a[i]; ..._b - three parts of the array