水题
sisaku
这个作者很懒,什么都没留下…
展开
-
鱼翔浅底:进阶二N题
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 to help to evaluate the results of a relay race. You have to pro原创 2016-01-16 22:18:21 · 455 阅读 · 0 评论 -
进阶训练一.水题
DescriptionA number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are to calculate the value of f(n).InputThe input原创 2016-01-03 11:08:27 · 326 阅读 · 0 评论 -
hdu 2062 Subset sequence
DescriptionConsider the aggregate An= { 1, 2, …, n }. For example, A1={1}, A3={1,2,3}. A subset sequence is defined as a array of a non-empty subset. Sort all the subset sequece of An in lexicogra原创 2016-01-31 22:39:39 · 564 阅读 · 0 评论