C语言思路简单,易懂!!! 理解万岁 (代码易理解)0_0!!!!! 摘要:解题思路: 用数组来计算加法,并进位注意事项:参考代码:#include<stdio.h>#include <string.h>int main(){ char p1[1000],p2[100…… 题解列表 2023年10月27日 0 点赞 0 评论 690 浏览 评分:9.9
字符串比较! 摘要:#include<stdio.h>#include <string.h>int main(){ char c[100],q[100]; scanf("%s",c); scanf("%s",…… 题解列表 2023年10月28日 0 点赞 0 评论 965 浏览 评分:9.9
题解 1808: [编程基础]输入输出练习之精度控制1 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a; cin>>a; pr…… 题解列表 2023年10月28日 0 点赞 0 评论 1050 浏览 评分:9.9
题解 2765: 计算分数的浮点数值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a,b; cin>>a>>b; …… 题解列表 2023年10月28日 0 点赞 0 评论 900 浏览 评分:9.9
数组求解与指定数字相同的数的个数 摘要:解题思路:首先数组a存储数字,100就代表整数序列最大为100,两个变量n,m表示整数序列的长度(N <= 100)和指定的数字, 其次一个for循环读取数字,并存到数组a…… 题解列表 2023年10月28日 0 点赞 0 评论 781 浏览 评分:9.9
[编程入门]三个数最大值(数组) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i = 0; int s[3]; for (i = 0; i < 3; i++…… 题解列表 2023年10月28日 0 点赞 0 评论 579 浏览 评分:9.9
判决素数个数(自定义函数) 摘要:解题思路:在主函数里调用自定义的函数参考代码:#include<iostream>using namespace std;void pss(int x,int y){ int s = 0; int i…… 题解列表 2023年10月28日 0 点赞 0 评论 605 浏览 评分:9.9
1136: C语言训练-求具有abcd=(ab+cd)2性质的四位数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int hou(int i){ int s; s=i%100; return s;}int qian(int i){ int s,h…… 题解列表 2023年10月28日 0 点赞 0 评论 539 浏览 评分:9.9
暴搜求扫雷游戏地雷数 首先看这道题的数据范围,明显比较小。所以我们可以直接考虑暴力。我们可以遍历每一个点,然后分别搜索每个点周围的雷的数量,然后直接输出。一下是这种方式的代码。```cpp#includeusingnamespacestd;constintN=110;charg[N][N];intdx[8]={0, 题解列表 2023年10月28日 0 点赞 0 评论 1013 浏览 评分:9.9
优质题解 BFS板子题(C++版) #分析题意这道题是一道BFS的板子题,属于是在网格中寻找最短路。在求解无边权最短路问题时,我们一般都可以采用BFS来做。#BFSBFS简而言之,就是优先考虑离当前节点最近的所有点,再依次递推。比如说本题的样例:55..####....#.#.##.#.##.#..这张图我们的遍历顺序是这样的:12## 题解列表 2023年10月29日 0 点赞 0 评论 1730 浏览 评分:9.9