计算边缘之和本比做法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,c,d,e,f,n,m; c=0;d=0;e=0;f=0; int a[101…… 题解列表 2024年12月02日 3 点赞 0 评论 271 浏览 评分:10.0
1062: 二级C语言-公约公倍 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int gys(int a,int b){ if (a == b) { return a; } if (a<b) { return …… 题解列表 2024年12月02日 1 点赞 0 评论 492 浏览 评分:10.0
1770: [编程入门]链表之报数问题 算了链表太难了,直接队列解!!! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 创建一个整数队列 queu…… 题解列表 2024年12月02日 0 点赞 0 评论 272 浏览 评分:0.0
1063: 二级C语言-统计字符 摘要:解题思路:注意事项:注意分别输出的顺序,不能写乱。参考代码:#include <stdio.h>int main(void){ int a = 0, b = 0, c = 0, d = 0; …… 题解列表 2024年12月02日 0 点赞 0 评论 825 浏览 评分:0.0
[编程入门]报数问题 纯c解法 无技巧 摘要:解题思路:只有纯0才有资格呢【狗头】注意事项:)报数足够多(但是时间可能超限)参考代码:#include<stdio.h>int a[101];int main(){ int m,h=0,q=0…… 题解列表 2024年12月03日 0 点赞 0 评论 349 浏览 评分:10.0
int做除法默认floor,如果想还原结果百分比需要*1.0 摘要:解题思路:1.int做除法默认floor,如果想还原结果百分比需要*1.0。如p=1.0*b/a;2.多行数据,如果要用前面一行求固定值,直接输入即可。不用想复杂,又引入数组索引,太麻烦。 cin>>…… 题解列表 2024年12月03日 0 点赞 0 评论 221 浏览 评分:0.0
逐层拆开逻辑,还原每一次计算的过程 摘要:解题思路:逐层拆开逻辑,还原每一次计算的过程。注意,rest+300的位置,前后需要有区分,否则容易混淆。参考代码:#include<iostream> using namespace std; …… 题解列表 2024年12月03日 0 点赞 0 评论 296 浏览 评分:0.0
[编程入门]链表之节点删除 哈哈 我自己也不知道 写的啥 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义一个结构体s,包含两个整数成员x和y struct s{ …… 题解列表 2024年12月03日 1 点赞 0 评论 294 浏览 评分:0.0
迷宫问题 大家都用 BFS 那我来个 DFS 吧!!! 摘要:解题思路: 哈哈哈哈哈哈 DFS 太好用了 !!!!!!注意事项:参考代码:#include"bits/stdc++.h" using nam…… 题解列表 2024年12月03日 0 点赞 0 评论 279 浏览 评分:0.0
数组逆序重放 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,a[n]; scanf("%d",&n); for(i=1;i<=n;i++)…… 题解列表 2024年12月03日 1 点赞 0 评论 449 浏览 评分:0.0