题解 1141: C语言训练-百钱百鸡问题 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ for(int x=0;x<=20;x++) …… 题解列表 2024年01月18日 0 点赞 0 评论 144 浏览 评分:9.9
C语言训练-百钱百鸡问题 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ for(int x=0;x<=20;x++) …… 题解列表 2024年01月18日 0 点赞 0 评论 125 浏览 评分:0.0
题解 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 评论 245 浏览 评分: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 评论 152 浏览 评分:9.9
题解 1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,sn=0,sum=1; …… 题解列表 2024年01月18日 1 点赞 0 评论 174 浏览 评分:9.9
题解 1141: C语言训练-百钱百鸡问题 摘要:暴力破解法是指从可能的解集合(空间)中一一列举各情况,用题目给定的检验条件判定哪些是没用的,哪些是有用的。能使命题成立的值,即为问题的解。基本思路:(1)确定问题的可能解的范围(可能解的空间)。(2)…… 题解列表 2024年01月18日 0 点赞 0 评论 209 浏览 评分:9.9
选择排序求解数字大小问题 摘要:解题思路:先创建数组,拿到用户输入的所有数据,再用两个for循环和一个if排序第一个for循环:用于遍历从第一个数到最后一个数的所有数据(1,2,3,4....)第二个for循环:用于遍历上一个for…… 题解列表 2024年01月18日 0 点赞 0 评论 176 浏览 评分:0.0
简单方法求解矩阵对角线之和 摘要:解题思路:先利用二维数组拿到用户输入的值,通过观察得知,当i,j值相等时,正好是矩阵的一条对角线,则可通过判断i,j是否相等来累加得到其中一个值,由于第二个对角线无规律,则使用笨方法直接求解即可注意事…… 题解列表 2024年01月18日 0 点赞 0 评论 216 浏览 评分:0.0
题解 2096: 打印平行四边形 摘要:解题思路:两个循环。注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; cin>>…… 题解列表 2024年01月18日 0 点赞 0 评论 256 浏览 评分:0.0
1331: 新三国争霸 摘要:# 1331: 新三国争霸 ```cpp /* * 1331: 新三国争霸 * 被通过率骗啦,还是比较综合的题目,考察了dp,图论。 * 简化一下题目,先考虑剔除转变驻守的策略。题目…… 题解列表 2024年01月18日 0 点赞 0 评论 311 浏览 评分:0.0