摘要: HighwaysTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 28368 Accepted: 12924DescriptionThe island nation of Flatopia is perfectly flat. Unf... 阅读全文
posted @ 2016-08-02 21:56 Lawliet__zmz 阅读(251) 评论(0) 推荐(0) 编辑
摘要: #include#include#include using namespace std;const int maxn = 2000+10;char map[maxn][10];int f[maxn];int n,cnt;struct edge{ int u,v; int w;}e[ma... 阅读全文
posted @ 2016-08-02 20:28 Lawliet__zmz 阅读(208) 评论(0) 推荐(0) 编辑
摘要: Truck HistoryTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 24751 Accepted: 9647DescriptionAdvanced Cargo Movement, Ltd. uses trucks of dif... 阅读全文
posted @ 2016-08-02 20:23 Lawliet__zmz 阅读(156) 评论(0) 推荐(0) 编辑
摘要: FrecklesTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 8309 Accepted: 3952DescriptionIn an episode of the Dick Van Dyke show, little Richie... 阅读全文
posted @ 2016-08-02 18:15 Lawliet__zmz 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 都是套路,换题不换意Agri-NetTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 51655 Accepted: 21544DescriptionFarmer John has been elected mayor of his ... 阅读全文
posted @ 2016-08-02 17:39 Lawliet__zmz 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Agri-NetTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 51653 Accepted: 21544DescriptionFarmer John has been elected mayor of his town! One ... 阅读全文
posted @ 2016-08-02 17:28 Lawliet__zmz 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Constructing RoadsTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 22440 Accepted: 9588DescriptionThere are N villages, which are numbered fr... 阅读全文
posted @ 2016-08-02 17:10 Lawliet__zmz 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Prim算法1.概览普里姆算法(Prim算法),图论中的一种算法,可在加权连通图里搜索最小生成树。意即由此算法搜索到的边子集所构成的树中,不但包括了连通图里的所有顶点(英语:Vertex (graph theory)),且其所有边的权值之和亦为最小。该算法于1930年由捷克数学家沃伊捷赫·亚尔尼克(... 阅读全文
posted @ 2016-08-02 11:22 Lawliet__zmz 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Children of the Candy CornTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 12755 Accepted: 5481DescriptionThe cornfield maze is a popular Hal... 阅读全文
posted @ 2016-08-02 10:24 Lawliet__zmz 阅读(151) 评论(0) 推荐(0) 编辑