/*http://acm.hdu.edu.cn/showproblem.php?pid=1026Ignatius and the Princess ITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9969 Accepted Submission(s): 2989Special JudgeProblem
Phone ListTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 18122 Accepted: 5769DescriptionGiven a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. Let's say the phone catalogue
原題連結:http://poj.org/problem?id=3278演算法:bfs+隊列+STL(C++)PS:bfs入門題目,好高興啊,終於會用bfs了。Catch That CowTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 32679 Accepted: 10060DescriptionFarmer John has been informed of the location of a fugitive cow
Connections in Galaxy WarTime Limit: 3 Seconds Memory Limit: 32768 KBIn order to strengthen the defense ability, many stars in galaxy allied together and built many bidirectional tunnels to exchange messages. However, when the Galaxy War began,
原題連結:http://poj.org/problem?id=2299Ultra-QuickSortTime Limit: 7000MS Memory Limit: 65536KTotal Submissions: 31043 Accepted: 11066DescriptionIn this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n
題目:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2361來源:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=26760#problem/BBeloved SonsTime Limit: 2 Seconds Memory Limit: 65536 KB Special JudgeOnce upon a time there lived
原題連結:http://acm.hdu.edu.cn/showproblem.php?pid=1022Train Problem ITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 13410 Accepted Submission(s): 4935Problem DescriptionAs the new term comes,