龟兔赛跑 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 10252 Accepted Submission(s): 3871 Problem Description 据说在很久很久以前,可怜的兔子经历了人生中最
Problem Description 据说在很久很久以前,可怜的兔子经历了人生中最大的打击——赛跑输给乌龟后,心中郁闷,发誓要报仇雪恨,于是躲进了杭州下沙某农业园卧薪尝胆潜心修炼,终于练成了绝技,能够毫不休息得以恒定的速度(VR m/s)一直跑。兔子一直想找机会好好得教训一下乌龟,以雪前耻。 最近正值HDU举办50周年校庆,社会各大名流齐聚下沙,兔子也趁此机会向乌龟发起挑战。虽然乌龟
传送门:http://blog.csdn.net/thestoryofsnow/article/details/6822576 作用:检测一个链表是否有环,如果有环,求出环的起点 int *head=list.GetHead();//链表起点 if(head!=null){//起初,快的和慢的都在链表起点 int *fast=head;int *slow=head;bool isCircul
龟兔赛跑 Time Limit : 1000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other) Total Submission(s) : 3 Accepted Submission(s) : 2 Font: Times New Roman | Verdana | Georgia Font Siz
龟兔赛跑 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 16184 Accepted Submission(s): 6079 Problem Description 据说在很久很久以前,可怜的兔子经历了人