摘要:
Friend Chainshttp://acm.hdu.edu.cn/showproblem.php?pid=4460图的最远两点距离,任意选个点bfs,如果有不能到的点直接-1.然后对于所有距离最远的点都bfs一次。最坏n^2邻接表 1 #include 2 #include 3 #include... 阅读全文
posted @ 2014-08-31 18:23
gaolzzxin
阅读(316)
评论(0)
推荐(0)
浙公网安备 33010602011771号