魏老四OJ
Home
ProblemSet
Source/Category
Contest
题单
Status
Ranklist
F.A.Qs
Login
1874: 【入门】H数2
Memory Limit:16 MB
Time Limit:1.000 S
:
Creator:
Submit:2
Solved:0
Submit
Statistics
Description
所谓H数,是指该数除1以外最多只有2,3,5,7四种因子,如630即为H数,而22不是。要求对键盘输入的自然数N,求出第N个H数。如N=30,应输出49。规定要求的H数不超出长整型数的范围。
Input
n(n<=4000)
Output
第n个h数
Sample Input
1
Sample Output
1
Source/Category
嵌套循环
Submit
Statistics