水仙花数判断C代码记录 摘要:解题思路:注意事项:参考代码:本人代码#include<stdio.h> int main() { int h,d,u; for(h=1;h<10;h++) …… 题解列表 2023年10月28日 0 点赞 0 评论 103 浏览 评分:0.0
100-999的水仙花数 摘要:解题思路:把每个数提出来,然后三次幂注意事项:参考代码:#include<stdio.h>int main(){ int i,a,b,c; for(i=100;i<1000;i++){ …… 题解列表 2023年11月03日 0 点赞 0 评论 147 浏览 评分:0.0
1016c语言代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,i; for(i=100;i<1000;i++){ a=i/100; b=i/10%10…… 题解列表 2023年11月06日 0 点赞 0 评论 128 浏览 评分:0.0
利用C++输出1000以内的所有水仙花数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int judgement(int num);int main…… 题解列表 2023年11月30日 0 点赞 0 评论 99 浏览 评分:0.0
题解 1016: [编程入门]水仙花数判断 C语言 摘要:解题思路:注意事项:主要考察位数分解参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int main(){ int num = 0, i…… 题解列表 2023年12月22日 0 点赞 0 评论 81 浏览 评分:0.0
数组存储,循环相除(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int arr[3] = { 0 …… 题解列表 2023年12月22日 0 点赞 0 评论 132 浏览 评分:0.0
蛮力法求解水仙花数 摘要:解题思路:由题可知,水仙花数为:abc=a^3+b^3+c^3;且100<水仙花数<1000即可用循环的方法找到100~1000中的所有数再逐一判断是否是水仙花数注意事项:使用pow函数时需要调用#i…… 题解列表 2024年01月17日 0 点赞 0 评论 134 浏览 评分:0.0
C++输出所有水仙花数 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int i,j; int a,b,c; for(i…… 题解列表 2024年01月19日 0 点赞 0 评论 132 浏览 评分:0.0
水仙花数判断(c语言)清晰版 摘要:解题思路:注意事项:参考代码:/*打印出所有"水仙花数",所谓"水仙花数"是指一个三位数,其各位数字立方和等于该本身。 例如:153是一个水仙花数,因为153=1^3+5^3+3^3。 */#incl…… 题解列表 2024年01月21日 0 点赞 0 评论 172 浏览 评分:0.0
水仙花数判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int g,s,b; for(int i=100;i<10…… 题解列表 2024年01月27日 0 点赞 0 评论 103 浏览 评分:0.0