【Codeforces】2015-2016 ACM-ICPC Nordic Collegiate Programming Contest (NCPC 2015) A Adjoin the Netwo
题目链接:http://codeforces.com/gym/100781/attachments题目大意:给你n个点和l条边,让你添加一些边形成一棵树使得树的直径尽可能小。(1#include#include#include#include#includeusingnamespacestd;constintMaxN=1e5;intn,m,len;vectoredge[MaxN+5];intq[M