1081: 输出比n小的水仙花数的个数
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:10
Solved:7
Description
输入一个整数n,输出n以内的水仙花数的个数。(包括n本身)
水仙花数是指一个三位数,它每个数位上的数的3次幂之和等于它本身。例如:153是水仙花数,因为1*1*1+5*5*5+3*3*3=153.
水仙花数是指一个三位数,它每个数位上的数的3次幂之和等于它本身。例如:153是水仙花数,因为1*1*1+5*5*5+3*3*3=153.
Input
154
Output
1
Sample Input Copy
153
Sample Output Copy
1