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

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

筛选

水仙花数判断

摘要: #include using namespace std; int main() { int a, b, c; for (int i = ……

水仙花数的判断

摘要:解题思路:注意事项:调用pow()函数,要引用#include<math.h>的库文件参考代码:#include<iostream>using namespace std;#include<math.……

极简单方法

摘要:解题思路:通过遍历,并将数个、十、百表示出来。参考代码:#include<iostream> using namespace std;int main(){    for(int i=100;i<10……

非正常解法但是很基础

摘要:解题思路:穷举a,循环求和,判断是否相等,输出。注意事项:参考代码:#include <iostream>using namespace std;int main(){    int a,b,c,su……

水仙花数判断

摘要:参考代码:#include"bits/stdc++.h" using namespace std; int a[1111]; bool check(int z){ int q=0; in……

水仙花数判断(c++易懂)

摘要:解题思路:使用for循环遍历所有三位数,再使用if语句找出各位数字立方和等于自己本身的数。注意事项:看注释参考代码:#include <iostream>   using namespace std;……

用for循环遍历数据panduan

摘要:解题思路:注意事项:这个代码能在vs上运行但答案错误不知道为啥参考代码:#include<iostream>using namespace std;int main(){    int a, b, c……

水仙花数判断 题解(c++拆分)

摘要:解题思路:要求拆分再判断是否为是否符合要求,如符合,便输出。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a,b,c;int m……

[编程入门]水仙花数判断

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ cout<<153<<endl<<370<<endl<<37……