随笔分类 -  杭电ACM普通题

摘要:Problem Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit the 阅读全文
posted @ 2019-03-15 20:52 烈焰蔷薇 阅读(199) 评论(0) 推荐(0)
摘要:Problem Description FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean 阅读全文
posted @ 2019-03-13 19:41 烈焰蔷薇 阅读(259) 评论(0) 推荐(0)
摘要:Problem Description A 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 阅读全文
posted @ 2019-03-12 23:06 烈焰蔷薇 阅读(158) 评论(0) 推荐(0)
摘要:Problem Description Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7 阅读全文
posted @ 2019-03-11 19:18 烈焰蔷薇 阅读(149) 评论(0) 推荐(0)