摘要: Problem 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 calculate A mod B.To make the problem easier, I promise that B will be smaller than 100000.Is it too hard? No, I work it out in 10 minutes, and my 阅读全文
posted @ 2012-04-05 21:14 'wind 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionThere are many students in PHT School. One day, the headmaster whose name is PigHeader wanted all students stand in a line. He prescribed that girl can not be in single. In other words, either no girl in the queue or more than one girl stands side by side. The case n=4 (n is the n 阅读全文
posted @ 2012-04-05 20:41 'wind 阅读(244) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionIn a Lotto I have ever played, one has to select 6 numbers from the set {1,2,...,49}. A popular strategy to play Lotto - although it doesn't increase your chance of winning - is to select a subset S containing k (k>6) of these 49 numbers, and then play several games with ch 阅读全文
posted @ 2012-04-05 17:31 'wind 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionThe Really Neato Calculator Company, Inc. has recently hired your team to help design their Super Neato Model I calculator. As a computer scientist you suggested to the company that it would be neato if this new calculator could convert among number bases. The company thought this 阅读全文
posted @ 2012-04-05 16:41 'wind 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionThe annual Games in frogs' kingdom started again. The most famous game is the Ironfrog Triathlon. One test in the Ironfrog Triathlon is jumping. This project requires the frog athletes to jump over the river. The width of the river is L (1<= L <= 1000000000). There are n 阅读全文
posted @ 2012-04-05 00:27 'wind 阅读(228) 评论(0) 推荐(0) 编辑