优质题解 【C语言】糖块粘合:简单的数组应用 - DotcppXF 摘要:【解题思路】 ① 糖块种类的数据量不是很大,可用二维数组保存糖块的粘合数据; ② 循环处理糖块粘合情况即可。【1】糖块粘合数据的保存 ① 用 a[100][3…… 题解列表 2022年10月07日 0 点赞 0 评论 1180 浏览 评分:7.4
优质题解 【C语言】环形传送器:用数组实现链表功能的解法 - DotcppXF 摘要:【解题思路】 ① 链表该学还是要学的,对链表还不熟悉的也可以尝试用数组来解题; ② 对题目要求的3个操作,做对应的数组操作即可。【1】将x物品插入到当前栏位右侧并挪至插入的…… 题解列表 2022年10月07日 0 点赞 0 评论 742 浏览 评分:9.0
优质题解 【C语言】合并区间:简单的条件判断练习 - DotcppXF 摘要:【解题思路】 ① 明确何时该取第一个数组的值,何时该取第二个数组的值,总结出判断条件; ② 明确结束条件,通过循环处理至结束。【1】判断结束的条件 根据题意,…… 题解列表 2022年10月07日 0 点赞 0 评论 1021 浏览 评分:5.5
003: [编程入门]密码破译 摘要:解题思路:注意事项:前面char过了,后面就不用char了参考代码:#include <iostream> using namespace std;int main(){char C,h,i,n,a;…… 题解列表 2022年10月07日 0 点赞 0 评论 671 浏览 评分:8.7
1002: [编程入门]三个数最大值 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; if(a>b && …… 题解列表 2022年10月07日 0 点赞 0 评论 434 浏览 评分:9.9
1002: [编程入门]三个数最大值 摘要:解题思路:注意事项:if的格式(有两个&)参考代码:#include <iostream> using namespace std;int main(){int a,b,c;cin>>a>>b>>c;…… 题解列表 2022年10月07日 0 点赞 0 评论 452 浏览 评分:9.9
编写题解 1010: [编程入门]利润计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>main(){ int a,b; scanf("%d",&a); if(a<=100000) b=a*0.1; if(a>100000&…… 题解列表 2022年10月07日 0 点赞 1 评论 344 浏览 评分:9.9
1115DNA题解 二维数组 摘要:```c #include int main() { int n, a, b, i, j, k, r, t = 1, num = 1, s; char c[39][39];//使用二维…… 题解列表 2022年10月06日 0 点赞 0 评论 685 浏览 评分:9.9
1113-保留字母 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ string s,s1; getli…… 题解列表 2022年10月06日 0 点赞 0 评论 383 浏览 评分:0.0
1112-一元二次方程 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath> using namespace std;int main(){ int a,b,c; cin >>a …… 题解列表 2022年10月06日 0 点赞 0 评论 343 浏览 评分:0.0