摘要:
#include#includeusing namespace std;int ma[300][300];int h[300][300];int a[300];int main(){int n,max,sum,i,k,ii,j,f;while(cin>>n){for(i=0;i>a[i];for(i=n;ih[j][k]+h[k+1][j+i]){ f=h[j][k]+h[k+1][j+i];}}sum=0;for(ii=j;iih[i][i+n-1]){x=i;f=h[i][i+n-1];}cout<<f<<endl;cout<<max& 阅读全文