-
var a:array[1..100000]of longint; n,i,j,x,s,m:longint; begin read(n); for i:=1 to n do begin read(a[i]); if a[i]>m then m:=a[i]; end; for i:=1 to m do begin s:=0; for j:=1 to n do begin if a[j]>=i then s:=s+1 else s:=0; if s*i>x then x:=s*i; end; end; write(x); end.
泽泽在英国 程序
最新推荐文章于 2023-05-02 22:07:40 发布