摘要: 题意及题解:判断有存在几个后面的数比前面的小;如果没有则输出0;如果有不止一个,则输出-1;如果恰有一个, 那么就需要判断a[1]和a[n]的大小关系。DescriptionOne day, Twilight Sparkle is interested in how to sort a sequen... 阅读全文
posted @ 2015-02-08 21:13 江豚 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 题意:给n 求最小的x题解:二元一次方程求解,x*x+x*b-n=0 遍历bDescriptionLet's consider equation:x^2 + s(x)·x - n = 0, where x, n are positive integers, s(x) is the function,... 阅读全文
posted @ 2015-02-08 21:07 江豚 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 题意:求平均值,注意精度A number of students are members of a club that travels annually to exotic locations. Their destinations in the past have included Indiana... 阅读全文
posted @ 2015-02-08 21:01 江豚 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 题意:求平均每千米花的时间,注意精度和格式DescriptionA relay is a race for two or more teams of runners. Each member of a team runs one section of the race. Your task is t... 阅读全文
posted @ 2015-02-08 20:58 江豚 阅读(200) 评论(0) 推荐(0) 编辑