练一下斜率优化 ..] of int64; q,a,b:..] of longint; i,n,h,t,j:longint; function g(j,k:longint):double; var a,b:double; begin a:=f[j]-f[k]-s2[j]+s2[k]; b:=s1[k]-s1[j]; exit(a/b); end; begin readln(n); to n do read(a[i]); to n do begin read(b[i]); s1[i]:=s1[i-…