- 博客(6)
- 收藏
- 关注
原创 LA5713 Qin Shi Huang's National Road System 生成树
和次小生成树类似,那边是枚举u,v 然后将u,v的权值替代maxcost[u][v],这里也是枚举然后用0替代,.加入的新边只需要和原最小生成树的边一起考虑,可以这样理解,将新边加入后,图中有且仅有一个环.新边的加入不能影响非环中的边,对于环中的边,新边的加入在重新形成生成树时.从kruskal算法考虑可知这只能影响原先MST的一条边.这样我们可知,加入一条新边对MST的影响是比较小的.
2016-08-07 09:32:29
287
原创 URAL - 1057 Amount of Degrees
Description Create a code to determine the amount of integers, lying in the set [ X; Y] and being a sum of exactly K different integer degrees of B. Example. Let X=15, Y=20, K=2, B=2. By
2016-07-03 09:50:48
296
原创 UVa11235 sparse-table RLE
http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=23846 游程编码(RunLength Encoding) RLE, Spares-Table 动态询问数组中出现最多的值的出现次数 /***********************************************************
2016-06-29 16:28:24
278
原创 UVa1625
/************************************************************************* > File Name: UVa1625.cpp > Author:HaoWei > Mail:liang199611@outlook.com > Created Time: 2016年06月21日 星期二 12时17分26秒 ****
2016-06-22 16:00:04
326
原创 UVA11478 二分
/************************************************************************* > File Name: UVa11478.cpp > Author:HaoWei > Mail:liang199611@outlook.com > Created Time: 2016年06月18日 星期六 12时08分03秒 ***
2016-06-18 16:14:22
363
原创 2016山东省赛H题
/************************************************************************* > File Name: 山东H.cpp > Author:HaoWei > Mail:liang199611@outlook.com > Created Time: 2016年06月07日 星期二 16时20分50秒 ********
2016-06-09 08:41:51
393
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅