摘要: 求出所有的水仙花数 水仙花数问题:一个三位数,个位数字立方和等于该数本身 eg:153=1*1*1+5*5*5+3*3*3 a 个位数字 b 十位 c 百位 s 一个三位数 int def(){ int a,b,c,s; int s; for(c=1;c<=9;c++) for(s=100;s<=9 阅读全文
posted @ 2019-04-15 22:38 acehm 阅读(252) 评论(0) 推荐(0)