[kkky]水仙花 简单遍历可得 摘要:解题思路: 获取三位数,即100-999,遍历满足条件则输出。 对十取余可获得个位; int类型 除十可去掉个位; int类型 除100…… 题解列表 2022年07月21日 0 点赞 0 评论 289 浏览 评分:9.9
[编程入门]水仙花数判断 C++ 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ cout<<153<<endl<<370<<endl<…… 题解列表 2022年05月23日 0 点赞 0 评论 132 浏览 评分:0.0
1016: [编程入门]水仙花数判断(c++) 摘要:解题思路:注意事项:参考代码:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a=0,b=0,c=0; …… 题解列表 2022年05月23日 0 点赞 0 评论 358 浏览 评分:9.9
[编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ cout<<153<<endl<<370<<endl<<37…… 题解列表 2022年05月17日 0 点赞 0 评论 188 浏览 评分:0.0
水仙花数判断 题解(c++拆分) 摘要:解题思路:要求拆分再判断是否为是否符合要求,如符合,便输出。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a,b,c;int m…… 题解列表 2022年05月08日 0 点赞 0 评论 174 浏览 评分:0.0
用for循环遍历数据panduan 摘要:解题思路:注意事项:这个代码能在vs上运行但答案错误不知道为啥参考代码:#include<iostream>using namespace std;int main(){ int a, b, c…… 题解列表 2022年02月26日 0 点赞 0 评论 157 浏览 评分:0.0
1016: [编程入门]水仙花数判断 摘要:解题思路:分成两步,先写判断水仙花数的子函数,然后遍历所有三位数。(1)重点是如何求立方和,方法也很好理解,就是用while()语句,先模10取余,然后除10,重复三次得到三个余数,求立方和就行了。(…… 题解列表 2022年02月21日 0 点赞 0 评论 387 浏览 评分:9.9
水仙花数判断(c++易懂) 摘要:解题思路:使用for循环遍历所有三位数,再使用if语句找出各位数字立方和等于自己本身的数。注意事项:看注释参考代码:#include <iostream> using namespace std;…… 题解列表 2022年01月28日 0 点赞 0 评论 241 浏览 评分:0.0
水仙花数判断 摘要:参考代码:#include"bits/stdc++.h" using namespace std; int a[1111]; bool check(int z){ int q=0; in…… 题解列表 2022年01月20日 0 点赞 0 评论 149 浏览 评分:0.0
非正常解法但是很基础 摘要:解题思路:穷举a,循环求和,判断是否相等,输出。注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a,b,c,su…… 题解列表 2021年10月25日 0 点赞 0 评论 194 浏览 评分:0.0