很不幸,这题我又被虐了,给个链接http://www.cnblogs.com/g-word/p/3288675.html ..] of longint; f:..,..] of longint; mx,b,d,v:..] of longint; i,j,n,k:longint; ans,s:double; function min(a,b:longint):longint; begin if a>b then exit(b) else exit(a); end; function ask(l,r…