## 复杂度不够当然超时……
by enor2017 @ 2018-12-01 21:35:22
试试搞搞常数开开O2
话说100001可以吗= =
by 紬文德斯 @ 2018-12-01 21:42:17
嗯嗯...呵呵o(* ̄︶ ̄*)o
by 橙子皮2646 @ 2018-12-01 21:46:23
//最短的代码,最小的空间,有点自豪感!
var
n,i,tot,t,h:longint;
begin
readln(n);
tot:=0; h:=0;
for i:=1 to n do
begin
read(t);
if t>h then inc(tot,t-h);
h:=t;
end;
writeln(tot);
end.
by zhy0201 @ 2018-12-17 10:41:49
开 o2 能过
by Jim777 @ 2023-07-28 15:51:34