C语言训练-"水仙花数"问题2 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,c; for(int i=10…… 题解列表 2023年07月13日 0 点赞 0 评论 119 浏览 评分:9.9
C语言训练-"水仙花数"问题2 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int b,s,g,i; for(i=100;i<=999;i++) {b=i/100; g=i%10;…… 题解列表 2023年10月13日 0 点赞 0 评论 235 浏览 评分:9.9
-"水仙花数"问题2 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main (String[] arg…… 题解列表 2023年12月07日 0 点赞 0 评论 265 浏览 评分:9.9
写个判断函数 摘要:参考代码:#include<iostream> #include<cmath> using namespace std; bool judge(int); int main() { fo…… 题解列表 2024年01月01日 0 点赞 0 评论 161 浏览 评分:9.9
题解 1120: C语言训练-"水仙花数"问题2 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c ; int x,y,z ; …… 题解列表 2024年01月18日 0 点赞 0 评论 189 浏览 评分:9.9
题解 1120: C语言训练-"水仙花数"问题2 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ for(int i=100; i<=999; i++…… 题解列表 2024年01月18日 0 点赞 0 评论 109 浏览 评分:9.9
编写题解 1120: C语言训练-"水仙花数"问题2 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { for (int i = 100; i < 1000; i++) { …… 题解列表 2024年08月01日 0 点赞 0 评论 482 浏览 评分:9.9
优质题解 C语言训练-"水仙花数"问题(c++代码) 摘要:首先我们要引出一个解题方法——**穷举法(又称枚举)**,即用循环表示出所有可能性再根据题目要求使用*if* 语句筛选出符合条件的结果。 让我们先读题: > 所谓"水仙花数"是指这样的一个三位…… 题解列表 2023年07月17日 1 点赞 3 评论 991 浏览 评分:9.5
枚举法(穷举)"水仙花数"问题2 (C语言代码) 摘要:解题思路:穷举出所有可能的情况:由于是三位数,则第一位数不能是0(为0则是二位数) i范围1~9注意事项:参考代码:#include <stdio.h> #include <math.h> int…… 题解列表 2019年01月08日 0 点赞 4 评论 2186 浏览 评分:9.0
C语言训练-"水仙花数"问题2-题解(C语言代码) 摘要:解题思路:从最小三位数遍历到最大三位数,挨个判断注意事项:参考代码:#include<stdio.h>int main(){ int a,b,x,y,z; for(a=100;a<1000…… 题解列表 2020年06月26日 0 点赞 1 评论 490 浏览 评分:8.7