摘要: Fractions to DecimalsWrite a program that will accept a fraction of the form N/D, where N is the numerator and D is the denominator and print the decimal representation. If the decimal representation has a repeating sequence of digits, indicate the sequence by enclosing it in brackets. For example, 阅读全文
posted @ 2012-09-10 21:55 mtry 阅读(348) 评论(0) 推荐(1)
摘要: A very hard mathematic problemTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 991Accepted Submission(s): 287Problem Description Haoren is very good at solving mathematic problems. Today he is working a problem like this: Find three positive integ.. 阅读全文
posted @ 2012-09-10 17:34 mtry 阅读(896) 评论(2) 推荐(1)
摘要: Alice and BobTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 559Accepted Submission(s): 224Problem DescriptionAlice and Bob's game never ends. Today, they introduce a new game. In this game, both of them have N different rectangular cards resp 阅读全文
posted @ 2012-09-10 15:41 mtry 阅读(1223) 评论(0) 推荐(0)