摘要: 题目:Write a program to find the nth super ugly number.Super ugly numbers are positive numbers whose all prime factors are in the given prime list prime... 阅读全文
posted @ 2015-12-04 21:25 lasclocker 阅读(545) 评论(0) 推荐(0) 编辑
摘要: 题目:Write a program to find the n-th ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 1, 2, 3, 4, 5... 阅读全文
posted @ 2015-12-04 21:16 lasclocker 阅读(470) 评论(0) 推荐(0) 编辑
摘要: 题目:Write a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For e... 阅读全文
posted @ 2015-12-04 20:12 lasclocker 阅读(230) 评论(0) 推荐(0) 编辑