摘要: u Calculate eTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 15679Accepted Submission(s): 6773Problem DescriptionA simple mathematical formula for e iswhere n is allowed to go to infinity. This can actually yield very accurate approximations of e u 阅读全文
posted @ 2012-02-08 17:42 Stephen Li 阅读(231) 评论(0) 推荐(0) 编辑
摘要: Big NumberTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 2407Accepted Submission(s): 1639Problem DescriptionAs we know, Big Number is always troublesome. But it's really important in our ACM. And today, your task is to write a program to calc 阅读全文
posted @ 2012-01-02 22:02 Stephen Li 阅读(434) 评论(0) 推荐(0) 编辑
摘要: NetworkingTime Limit:2 Seconds Memory Limit:65536 KBYou are assigned to design network connections between certain points in a wide area. You are given a set of points in the area, and a set of possible routes for the cables that may connect pairs of points. For each possible route between two point 阅读全文
posted @ 2012-01-02 17:22 Stephen Li 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 1009 FatMouse' TradeTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 19485Accepted Submission(s): 6041Problem DescriptionFatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, Ja 阅读全文
posted @ 2011-12-06 23:25 Stephen Li 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 133B.UnaryUnary is a minimalistic Brainfuck dialect in which programs are written using only one token.Brainfuck programs use 8 commands: "+", "-", "[", "]", "<", ">", "." and "," (their meaning is not important fo 阅读全文
posted @ 2011-12-05 23:47 Stephen Li 阅读(301) 评论(0) 推荐(0) 编辑
摘要: A. HQ9+HQ9+ is a joke programming language which has only four one-character instructions:· "H" prints "Hello, World!",· "Q" prints the source code of the program itself,· "9" prints the lyrics of "99 Bottles of Beer" song,· " 阅读全文
posted @ 2011-12-05 23:42 Stephen Li 阅读(522) 评论(0) 推荐(0) 编辑
摘要: RiskTime Limit: 2 Seconds Memory Limit: 65536 KBRisk is a board game in which several opposing players attempt to conquer the world. The gameboard consists of a world map broken up into hypothetical countries. During a player's turn, armies stationed in one country are only allowed to attack onl 阅读全文
posted @ 2011-12-03 22:46 Stephen Li 阅读(525) 评论(0) 推荐(0) 编辑
摘要: find the nth digitTime Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 4512Accepted Submission(s): 1256Problem Description假设: S1 = 1 S2 = 12 S3 = 123 S4 = 1234 ......... S9 = 123456789 S10 = 1234567891 S11 = 12345678912 ............ S18 = 1234567891234 阅读全文
posted @ 2011-12-03 16:52 Stephen Li 阅读(375) 评论(0) 推荐(0) 编辑
摘要: Human Gene FunctionsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 1065Accepted Submission(s): 623Problem DescriptionIt is well known that a human gene can be considered as a sequence, consisting of four nucleotides, which are simply denoted by f 阅读全文
posted @ 2011-12-01 16:58 Stephen Li 阅读(331) 评论(0) 推荐(0) 编辑
摘要: Humble NumbersTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7231Accepted Submission(s): 3154Problem DescriptionA number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16 阅读全文
posted @ 2011-12-01 16:55 Stephen Li 阅读(202) 评论(0) 推荐(0) 编辑