导航

2015年8月19日

摘要: Write a program to find then-th ugly number.Ugly numbers are positive numbers whose prime factors only include2, 3, 5. For example,1, 2, 3, 4, 5, 6, 8... 阅读全文

posted @ 2015-08-19 17:43 骄阳照林 阅读(205) 评论(0) 推荐(0) 编辑

摘要: Write a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors only include2, 3, 5. For examp... 阅读全文

posted @ 2015-08-19 16:54 骄阳照林 阅读(116) 评论(0) 推荐(0) 编辑

摘要: Given a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is like:3 + ... 阅读全文

posted @ 2015-08-19 16:31 骄阳照林 阅读(122) 评论(0) 推荐(0) 编辑