摘要: Number SequenceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 60820 Accepted Submission(s): 13862Problem 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 阅读全文
posted @ 2012-07-23 19:58 剑不飞 阅读(125) 评论(0) 推荐(0) 编辑
摘要: N!Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 33314 Accepted Submission(s): 9234Problem Description Given an integer N(0 ≤ N ≤ 10000), your task is to calculate NInput One N in one line, process to the end of file.Output For each N, output N! 阅读全文
posted @ 2012-07-23 18:28 剑不飞 阅读(173) 评论(0) 推荐(0) 编辑