随笔分类 - 图论 最短路
摘要:A Buying A House 题意:给你n个房间,妹子住在第m个房间,你有k块钱,你想买一个离妹子最近的房间。其中相邻的房间之间距离为10,a[i]=0表示已经被别人买了。 题解:扫一遍更新答案即可。 include using namespace std; const int maxn = 1
阅读全文
摘要:B. Legacy 题目连接: http://codeforces.com/contest/786/problem/B Description Rick and his co workers have made a new radioactive formula and a lot of bad g
阅读全文
摘要:3245: 最快路线 题目连接: http://www.lydsy.com/JudgeOnline/problem.php?id=3245 Description 精明的小R每每开车出行总是喜欢走最快路线,而不是最短路线.很明显,每条道路的限速是小R需要考虑的关键问题.不过有一些限速标志丢失了,于是
阅读全文
摘要:Problem D. Distance 题目连接: http://codeforces.com/gym/100714 Description In a large city a cellular network operator is holding a competition for subscr
阅读全文
摘要:Challenge Your Template 题目连接: http://acm.hust.edu.cn/vjudge/contest/122701 problem/G Description ACM International Collegiate Programming Contest (ICP
阅读全文
摘要:Flowery Trails 题目连接: https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4897 Description In order
阅读全文
摘要:3875: [Ahoi2014]骑士游戏 题目连接: http://www.lydsy.com/JudgeOnline/problem.php?id=3875 Description 【故事背景】 长期的宅男生活中,JYY又挖掘出了一款RPG游戏。在这个游戏中JYY会 扮演一个英勇的骑士,用他手中的
阅读全文
摘要:B. World Tour 题目连接: http://www.codeforces.com/contest/666/problem/B Description A famous sculptor Cicasso goes to a world tour! Well, it is not actual
阅读全文
摘要:Tricks Device 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5294 Description Innocent Wu follows Dumb Zhang into a ancient tomb. Innocent Wu’s at th
阅读全文
摘要:Transform 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5637 Description A list of n integers are given. For an integer x you can do the following o
阅读全文
摘要:Dwarf Tower 题目连接: http://codeforces.com/gym/100269/attachments Description Little Vasya is playing a new game named “Dwarf Tower”. In this game there
阅读全文
摘要:<center Trucking</center 题目连接:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2224 Descriptio...
阅读全文
摘要:<center Chamber of Secrets</center 题目连接:http://codeforces.com/problemset/problem/173/B Description"The Chamber of Secrets has been opened again" — t...
阅读全文
摘要:<center 1295: [SCOI2009]最长距离</center 题目连接:http://www.lydsy.com/JudgeOnline/problem.php?id=1295 Descriptionwindy有一块矩形土地,被分为 N\ M 块 1\ 1 的小格子。 有的格子含有障...
阅读全文
摘要:C. The Two RoutesTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/contest/602/problem/CDescriptionIn Absurdistan, there arentowns (numb...
阅读全文
摘要:MeetingTime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=5521DescriptionBessie and her friend Elsie decide to have a...
阅读全文
摘要:The Battle of GuanduTime Limit: 1 Sec Memory Limit: 256 MB题目连接无DescriptionIn the year of 200, two generals whose names are Cao Cao and Shao Yuan are f...
阅读全文
摘要:2763: [JLOI2011]飞行路线Time Limit: 1 Sec Memory Limit: 256 MB题目连接http://www.lydsy.com/JudgeOnline/problem.php?id=2763DescriptionAlice和Bob现在要乘飞机旅行,他们选择了一家...
阅读全文
摘要:Designation in the MafiaTime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.hust.edu.cn/vjudge/contest/view.action?cid=88994#problem/HDescriptionThe ...
阅读全文
摘要:E. President and RoadsTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/contest/567/problem/EDescriptionBerland hasncities, the capital ...
阅读全文