经典指数          
POJ
原因
1181
浏览数
0
收藏数
 

Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, ... shows the first 10 ugly numbers. By convention, 1 is included. Given the integer n,write a program to find and print the n'th ugly number. 输入描述 Each line of the input contains a postisive intege输出描述 For each line, output the n’th ugly number .:Don’t deal with the line with n=0.输入例子 1 2 9 0 输出例子 1 2 10

     举报   纠错  
 
切换
暂时还没有答案,欢迎分享你的解答 . . .
撰写答案
扫描后移动端查看本题