蛇行矩阵------想法很特别,思路很清晰,值得学习的c++解法,c语言也可参考 摘要:```cpp #include using namespace std; int main(void) { int n; int count=1; cin>>n; int**p…… 题解列表 2021年12月20日 0 点赞 0 评论 319 浏览 评分:9.9
求圆的面积(c++) 摘要:解题思路:注意事项:控制浮点数精度参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ double r; c…… 题解列表 2021年12月20日 0 点赞 0 评论 333 浏览 评分:0.0
1052: [编程入门]链表合并 摘要:这里的解法是依次将结点插入链表。题目的本意应该是提供 a 和 b 两个现成的链表,然后将 b 链表归并到 a 链表里,最后将链表排序。#include<bits/stdc++.h> using na…… 题解列表 2021年12月19日 0 点赞 0 评论 448 浏览 评分:0.0
1676: 数据结构-链表的基本操作 摘要:错了两次才过,这题有一个数据很大的样例,输入输出不能用 cin 和 cout,字符串用 char 数组不要用 string,不然会时间超限。#include<bits/stdc++.h> using…… 题解列表 2021年12月19日 0 点赞 0 评论 269 浏览 评分:0.0
1979: 求平均工资 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,a[n],he=0; cin>>n;…… 题解列表 2021年12月19日 0 点赞 0 评论 295 浏览 评分:0.0
1970: 巨大的数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,a[n],j=1; cin>>n; …… 题解列表 2021年12月19日 0 点赞 0 评论 296 浏览 评分:0.0
题解 2101: 矩阵面积相交 摘要: #include typedef struct Square { int x1; int y1; int x2; …… 题解列表 2021年12月19日 0 点赞 0 评论 393 浏览 评分:9.9
1585: 蓝桥杯算法训练VIP-链表数据求和操作 摘要:无头结点的单链表,只带尾插函数。#include<bits/stdc++.h> using namespace std; struct node{ double shi,xu; …… 题解列表 2021年12月19日 0 点赞 0 评论 256 浏览 评分:9.0
蓝桥杯算法训练-二进制数数----很好用,很有趣的想法 摘要:```cpp #include using namespace std; int main(void) { int L,P; cin>>L>>P; int a[1000]={0};…… 题解列表 2021年12月18日 0 点赞 0 评论 396 浏览 评分:9.9