随笔分类 - 最短路
摘要:spfa的SLF优化就是small label first 优化,当加入一个新点v的时候如果此时的dis[v]比队首dis[q.front()]还要小的话,就把v点加入到队首,否则把他加入到队尾,因为先扩展最小的点可以尽量使程序尽早的结束,一种方法可以用模拟队列,head,tail,但是由于不知道q...
阅读全文
摘要:Remmarguts' DateTime Limit:4000MSMemory Limit:65536KTotal Submissions:21549Accepted:5862Description"Good man never makes girls wait or breaks an appoi...
阅读全文
摘要:http://poj.org/problem?id=3463SightseeingTime Limit:2000MSMemory Limit:65536KTotal Submissions:7252Accepted:2581DescriptionTour operator Your Personal...
阅读全文
摘要:poj1724ROADSTime Limit:1000MSMemory Limit:65536KTotal Submissions:10751Accepted:3952DescriptionN cities named with numbers 1 ... N are connected with ...
阅读全文
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2433TravelTime Limit: 10000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s...
阅读全文
摘要:hdu1384Minimum Transport CostTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7011Accepted Submissi...
阅读全文
摘要:hdu1245Saving James BondTime Limit: 6000/3000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1877Accepted Submission(s)...
阅读全文
摘要:hdu1224Free DIY TourTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3656Accepted Submission(s): 11...
阅读全文
摘要:FZU2090旅行社的烦恼Time Limit:2000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64u[Submit] [Go Back] [Status]DescriptionV11开了一家旅行社,众所周知现在商业竞争越来越激烈,为了更好地吸...
阅读全文
摘要:hdu1217ArbitrageTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4123Accepted Submission(s): 1878Pr...
阅读全文