1071 水仙花数
Submit solution
Points:
100
Time limit:
1.0s
Memory limit:
32M
Problem types
Allowed languages
C, C++, Java, Python
Description
打印出所有的“水仙花数”,所谓“水仙花数”是指一个三位数,其各位数字立方和等于该数本身,即
ABC=A^3+B^3+C^3
Input
无
Output
按从小到大的顺序输出水仙花数,每行一个。
Comments