摘要: ElevatorTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 29443Accepted Submission(s): 15921 Problem DescriptionThe highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which fl 阅读全文
posted @ 2013-03-02 23:36 哥的笑百度不到 阅读(154) 评论(0) 推荐(0) 编辑
摘要: Let the Balloon RiseTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 50088Accepted Submission(s): 17947 Problem DescriptionContest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite tim 阅读全文
posted @ 2013-03-02 23:11 哥的笑百度不到 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Number SequenceTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 72091Accepted Submission(s): 16791 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 阅读全文
posted @ 2013-03-02 21:27 哥的笑百度不到 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Max SumTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 95590Accepted Submission(s): 22086 Problem DescriptionGiven 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), the m 阅读全文
posted @ 2013-03-02 21:23 哥的笑百度不到 阅读(151) 评论(0) 推荐(0) 编辑
摘要: A + B Problem IITime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 141857Accepted Submission(s): 26917 Problem DescriptionI have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.InputThe first line 阅读全文
posted @ 2013-03-02 20:01 哥的笑百度不到 阅读(229) 评论(1) 推荐(0) 编辑
摘要: Sum ProblemTime Limit: 1000/500 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 194488Accepted Submission(s): 46632 Problem DescriptionHey, welcome to HDOJ(Hangzhou Dianzi University Online Judge).In this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n. 阅读全文
posted @ 2013-03-02 19:45 哥的笑百度不到 阅读(198) 评论(0) 推荐(0) 编辑
摘要: A + B ProblemTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 271014Accepted Submission(s): 80188 Problem DescriptionCalculateA + B.InputEach line will contain two integersAandB. Process to end of file.OutputFor each case, outputA + Bin one line.Sa 阅读全文
posted @ 2013-03-02 19:30 哥的笑百度不到 阅读(208) 评论(0) 推荐(0) 编辑