#P1020. 判断水仙花数
判断水仙花数
Background
判断水仙花数
Description
输入一个三位整数,判断它是否为水仙花数。
水仙花数:各位数字的立方和等于该数本身(如 153 = 1³ + 5³ + 3³)。
Format
Input
一个三位整数
Output
yes 或 no
Samples
153
yes
Limitation
1s, 1024KiB for each test case.
相关
在下列比赛中:
判断水仙花数
输入一个三位整数,判断它是否为水仙花数。
水仙花数:各位数字的立方和等于该数本身(如 153 = 1³ + 5³ + 3³)。
一个三位整数
yes 或 no
153
yes
1s, 1024KiB for each test case.