摘要: SticksTime Limit:1000MSMemory Limit:10000KTotal Submissions:106254Accepted:24234DescriptionGeorge took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the original state, but he forgot how many sticks he had originally an 阅读全文
posted @ 2013-04-15 23:10 Jack Ge 阅读(199) 评论(0) 推荐(0) 编辑
摘要: SubsequenceTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3132Accepted Submission(s): 1020Problem DescriptionThere is a sequence of integers. Your task is to find the longest subsequence that satisfies the following condition: the difference betwe 阅读全文
posted @ 2013-04-15 18:22 Jack Ge 阅读(255) 评论(0) 推荐(0) 编辑
摘要: Sliding WindowTime Limit:12000MSMemory Limit:65536KTotal Submissions:29829Accepted:8863Case Time Limit:5000MSDescriptionAn array of sizen≤ 106is given to you. There is a sliding window of sizekwhich is moving from the very left of the array to the very right. You can only see theknumbers in the wind 阅读全文
posted @ 2013-04-15 17:47 Jack Ge 阅读(1692) 评论(0) 推荐(0) 编辑
摘要: Island TransportTime Limit: 20000/10000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 2822Accepted Submission(s): 922Problem Description In the vast waters far far away, there are many islands. People are living on the islands, and all the transport among the islands. 阅读全文
posted @ 2013-04-15 13:32 Jack Ge 阅读(810) 评论(0) 推荐(0) 编辑