摘要:
Problem 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 consists of multiple test cases. Each test case contains 3 integers A, B and n on a single line (1 using 阅读全文
posted @ 2013-09-01 12:48
同学少年
阅读(271)
评论(0)
推荐(0)
摘要:
Problem DescriptionContest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the most popular problem. When the contest is over, they will count the balloons of each color and find the result.This year, they decide to l 阅读全文
posted @ 2013-09-01 12:28
同学少年
阅读(144)
评论(0)
推荐(0)

浙公网安备 33010602011771号