【解题总结】Waterloo Local 2012-2013(Codeforces Gym 100169)
感官难度:C=D#defineINF10000000000000000llusingnamespacestd;typedeflonglongll;typedefpair>pill;intn,m,p;intto[80005],nxt[80005],tp[80005];intw[80005],at[4005]={0},cnt=0;pairdis[4005];priority_queue,greater