欢迎访问我的个人网站==》 jiashubing.cn
摘要: Digital RootsProblem DescriptionThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains two or more digits, those digits are summed and the process is repeated. 阅读全文
posted @ 2014-03-24 18:08 贾树丙 阅读(244) 评论(0) 推荐(0) 编辑
摘要: Super Jumping! Jumping! Jumping!Problem DescriptionNowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this game, so I introduce it to you now.The game can be played by two or more than two players. It consi 阅读全文
posted @ 2014-03-24 18:05 贾树丙 阅读(335) 评论(0) 推荐(0) 编辑
摘要: Common SubsequenceProblem DescriptionA subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another sequence Z = is a subsequence of X if there exists a strictly increasing sequence of indices of X such that for all j = 1,2,...,k,... 阅读全文
posted @ 2014-03-24 18:00 贾树丙 阅读(298) 评论(0) 推荐(0) 编辑
摘要: Monkey and BananaProblem DescriptionA group of researchers are designing an experiment to test the IQ of a monkey. They will hang a banana at the roof of a building, and at the mean time, provide the monkey with some blocks. If the monkey is clever enough, it shall be able to reach the banana by pla 阅读全文
posted @ 2014-03-24 17:56 贾树丙 阅读(621) 评论(0) 推荐(0) 编辑
摘要: Humble NumberProblem 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, 18, 20, 21, 24, 25, 27, ... shows the first 20 humble numbers.Write a program to find and print the nth element in this sequenceInpu 阅读全文
posted @ 2014-03-24 17:49 贾树丙 阅读(248) 评论(0) 推荐(0) 编辑