随笔分类 - 杭电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
阅读全文
摘要:Problem Description FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号