#846. 水仙花数 (课程A)
水仙花数 (课程A)
说明
水仙花数(Narcissistic number)也被称为超完全数字不变数(pluperfect digital invariant, PPDI)、自恋数、自幂数、阿姆斯壮数或阿姆斯特朗数(Armstrong number),水仙花数是指一个 n 位数(n≥3 ),它的每个位上的数字的 n 次幂之和等于它本身(例如:1^3 + 5^3+ 3^3 = 153,即1*1*1+5*5*5+3*3*3=153)。求所有3位数字的水仙花数。
By signing up a 大沥中心 universal account, you can submit code and join discussions in all online judging services provided by us.