(I2
I124
I5
(dp0
Vmaxarrea.%l
p1
(Vmaxarrea.cpp
p2
S'#include<iostream>\r\n#include<vector>\r\n#define MAXD 15000\r\nusing namespace std;\r\nint n,a[1000001],maxx,v[15001];\r\nlong long max_st,now;\r\nint main()\r\n{\r\n    ios::sync_with_stdio(false);\r\n    cin.tie(NULL);\r\n    cin>>n;\r\n    a[0]=0;\r\n    n++;\r\n    a[n]=0;\r\n    for(int i=1;i<=n;i++)\r\n    {\r\n        if(i!=n)cin>>a[i];\r\n        for(int j=a[i]+1;j<=MAXD;j++)\r\n        {\r\n            now=(i-v[j]-1)*j;\r\n            if(max_st<now)max_st=now;\r\n            v[j]=i;\r\n        }\r\n    }\r\n    cout<<max_st<<endl;\r\n    return 0;\r\n}\r\n/*\r\n11\r\n6 5 2 7 8 6 8 3 5 6 7\r\n*/\r\n'
p3
tp4
stp5
.