摘要: 水仙花数是指一个N位正整数(N>=3),它的每个位上的数字的N次幂之和等于它本身。例 如:153 = 13+ 53+ 33。 本题要求编写程序,计算所有N位水仙花数。输入格式:输入在一行中给出一个正整数N(3#include #include #includeint main(){ int n... 阅读全文
posted @ 2015-01-24 17:13 Joilee 阅读(269) 评论(0) 推荐(0)