编写题解 1024: [编程入门]矩阵对角线求和 适合新手理解体会 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main() { int k,p=0; int a[…… 题解列表 2023年01月07日 0 点赞 0 评论 238 浏览 评分:0.0
2754: 其他基本数据类型存储空间大小 题解 摘要:解题思路:遵照题意即可参考代码:#include<bits/stdc++.h>using namespace std;int main(){ bool a; char b; cout…… 题解列表 2023年01月07日 0 点赞 0 评论 484 浏览 评分:9.0
2753: 浮点型数据类型存储空间大小 题解 摘要:解题思路:遵照题意即可参考代码:#include<bits/stdc++.h> using namespace std; int main() { float a; doub…… 题解列表 2023年01月07日 0 点赞 0 评论 534 浏览 评分:9.9
C++代码(结构体的运用) 摘要:###### 解题思路: 建立一个结构体,包含三个数据:学号,姓名,成绩。 通过函数input进行数据的输入。 通过函数print进行输出。 ```cpp #include #inc…… 题解列表 2023年01月07日 0 点赞 0 评论 392 浏览 评分:9.9
编写题解 1022: [编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main() { int N; cin>>N; fo…… 题解列表 2023年01月07日 0 点赞 0 评论 209 浏览 评分:0.0
编写题解 1020: [编程入门]猴子吃桃的问题 摘要:解题思路:注意事项:参考代码:#include#includeusing namespace std;int main() {int N,all=1;cin>>N;for(int i=1;i<N;i+…… 题解列表 2023年01月07日 0 点赞 0 评论 235 浏览 评分:0.0
编写题解 1019: [编程入门]自由下落的距离计算 摘要:解题思路:为什么我不给sum给与初值就会报错呢?注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main() …… 题解列表 2023年01月07日 0 点赞 0 评论 217 浏览 评分:0.0
1046: [编程入门]自定义函数之数字后移【也许是一种新思路】 摘要:#include<iostream> using namespace std; int func(int a[],int n,int m); int main() { int n; c…… 题解列表 2023年01月07日 0 点赞 0 评论 292 浏览 评分:9.9
2178迷宫问题 中等BFS+DFS(注释很详细) 摘要:注意:这里的前半段BFS代码直接套用第2177题的代码,稍作修改即可原版在我的这篇题解:<2177走迷宫 简单BFS(注释很详细)>其实BFS像是从一个点,一片一片地拓展出去,而DFS更像是从一个点,…… 题解列表 2023年01月07日 0 点赞 0 评论 372 浏览 评分:9.9
编写题解 1018: [编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<iostream>#include <iomanip>using namespace std;int main() { int N; cin>>N; d…… 题解列表 2023年01月07日 0 点赞 0 评论 319 浏览 评分:0.0