摘要: 建道路使得三个国家联通,问最少需要在多少个格子上修路枚举每一个格子,计算三个国家到达这个格子的最短路,取最小的发现pair用来代替node有时候还是很好用的#include"cstdio"#include"queue"#include"cmath"#include"stack"#include"io... 阅读全文
posted @ 2015-12-23 12:06 Septher 阅读(275) 评论(0) 推荐(0)