1052: [编程入门]链表合并 摘要:这里的解法是依次将结点插入链表。题目的本意应该是提供 a 和 b 两个现成的链表,然后将 b 链表归并到 a 链表里,最后将链表排序。#include<bits/stdc++.h> using na…… 题解列表 2021年12月19日 0 点赞 0 评论 608 浏览 评分:0.0
1676: 数据结构-链表的基本操作 摘要:错了两次才过,这题有一个数据很大的样例,输入输出不能用 cin 和 cout,字符串用 char 数组不要用 string,不然会时间超限。#include<bits/stdc++.h> using…… 题解列表 2021年12月19日 0 点赞 0 评论 346 浏览 评分: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 评论 392 浏览 评分: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 评论 382 浏览 评分:0.0
题解 2101: 矩阵面积相交 摘要: #include typedef struct Square { int x1; int y1; int x2; …… 题解列表 2021年12月19日 0 点赞 0 评论 497 浏览 评分:9.9
1585: 蓝桥杯算法训练VIP-链表数据求和操作 摘要:无头结点的单链表,只带尾插函数。#include<bits/stdc++.h> using namespace std; struct node{ double shi,xu; …… 题解列表 2021年12月19日 0 点赞 0 评论 323 浏览 评分: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 评论 492 浏览 评分:9.9
1739: 成绩排序 摘要:结构体的排序,自己写一个 sort 函数的比较算法就好了。#include<bits/stdc++.h> using namespace std; struct student{ s…… 题解列表 2021年12月18日 0 点赞 0 评论 364 浏览 评分:0.0
暴力回文(c++代码) 摘要:解题思路:(此思路从回文那题搬运而来)从95860开始往后枚举若是回文数字(原数字与倒数字相同)自动跳出,判断回文的方法:从个位开始依次取余,每次取余后的结果和上次和的结果*10最后得到的值就是给这个…… 题解列表 2021年12月18日 0 点赞 0 评论 475 浏览 评分:9.9