题解 1016: [编程入门]水仙花数判断

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

c++解题思路

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int main(){    for(int i=100;i<……

水仙花数判断

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){     int a,b,c,d;     for(a=100;a<1000;a++)     {     b=……

使用for 循环语句

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { for (int n = 100; n < 1000;……

水仙花数判断

摘要:解题思路:首先表示这个三位数范围在100到999之间,再表示其百位,十位及个位数字。最后验证其百位,十位及个位数字的三次方之和是否等于该数字。注意事项:三个数字的表示参考代码:#include<std……

很简单的水仙花,使我大脑旋转。

摘要:解题思路:直接按照水仙花定义求解注意事项:关键在于如何表示百位,十位,个位的数值,三位数除100再取10的余得百位,除10取10的余得十位,直接取10的余得个位。参考代码:#include <stdi……

判断水仙花

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    int n,ge,shi,bai;    //scanf("%d",&n)……

遍历三位数暴力解法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    for(int i=100;i<1000;i++)    {        int k=i;       ……