Problem D: 水仙花数

Problem D: 水仙花数

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 1178  Solved: 840
[Submit] [Status] [Web Board] [Creator:]

Description

水仙花数是指一个三位数,其各位数字立方和等于该本身。 例如:153是一个水仙花数,因为

13+53+33 = 1 + 125 + 27 = 153 。

水仙花数共有4个,请编写程序,输出这4个水仙花数,每行一个。

						

Input

Output

所有的水仙花数,从小的开始。 每行一个