选择排序求解数字大小问题 摘要:解题思路:先创建数组,拿到用户输入的所有数据,再用两个for循环和一个if排序第一个for循环:用于遍历从第一个数到最后一个数的所有数据(1,2,3,4....)第二个for循环:用于遍历上一个for…… 题解列表 2024年01月18日 0 点赞 0 评论 169 浏览 评分:0.0
题解 1141: C语言训练-百钱百鸡问题 摘要:暴力破解法是指从可能的解集合(空间)中一一列举各情况,用题目给定的检验条件判定哪些是没用的,哪些是有用的。能使命题成立的值,即为问题的解。基本思路:(1)确定问题的可能解的范围(可能解的空间)。(2)…… 题解列表 2024年01月18日 0 点赞 0 评论 201 浏览 评分:9.9
题解 1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,sn=0,sum=1; …… 题解列表 2024年01月18日 1 点赞 0 评论 167 浏览 评分: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 评论 140 浏览 评分: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 评论 237 浏览 评分:9.9
C语言训练-百钱百鸡问题 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ for(int x=0;x<=20;x++) …… 题解列表 2024年01月18日 0 点赞 0 评论 117 浏览 评分:0.0
题解 1141: C语言训练-百钱百鸡问题 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ for(int x=0;x<=20;x++) …… 题解列表 2024年01月18日 0 点赞 0 评论 139 浏览 评分:9.9
蛮力法求解素数 摘要:解题思路:素数是除了能被1和本身整除,其余数都不能整除的数可通过蛮力法和循环求解此题外部循环拿到从2~a的所有数(a为用户输入的数)内部循环拿到从2~a-1的所有数用外部循环拿到的数逐一取模内部循环拿…… 题解列表 2024年01月18日 0 点赞 0 评论 213 浏览 评分:0.0
2831: 画矩形 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a,b,d; char c…… 题解列表 2024年01月18日 0 点赞 0 评论 184 浏览 评分:9.9
题解 2836: 数组逆序重放 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; const int N = 110; int arr[N]; int main(…… 题解列表 2024年01月18日 0 点赞 0 评论 120 浏览 评分:0.0