题意: 思路: 写了两种版本 考场版本 ..,..]of longint; t:..,..]of longint; n,m,i,j,k,oo,ans,d1:longint; function min(x,y:int64):int64; begin if x<y then exit(x); exit(y); end; begin assign(input,'room.in'); reset(input); assign(output,'room.out'); rewrite(output); re…