太难了我不想打代码[STL训练]{A} + {B} 摘要:解题思路:set容器可以排序、去重、所以用它太几把合适了,先这样,在那样,最后那样,然后他妈的发现错了注意事项: 注意进厂时机!!!参考代码:#includeusing namespace s…… 题解列表 2023年06月07日 0 点赞 0 评论 268 浏览 评分:0.0
题目 1303: 统计数字题解 摘要:参考代码:#include<iostream> #include<algorithm> using namespace std; int a[500001],n,ans=1; int main…… 题解列表 2023年06月07日 0 点赞 0 评论 264 浏览 评分:0.0
蓝桥杯2021年第十二届国赛真题-二进制问题 #C++#dfs 摘要:```c++ #include using namespace std; typedef long long ll; typedef pair PII; const int N = 1e…… 题解列表 2023年06月06日 0 点赞 0 评论 403 浏览 评分:9.9
普通的写法 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;const int N =10010;int a[N];…… 题解列表 2023年06月06日 0 点赞 0 评论 674 浏览 评分:0.0
C语言训练-求矩阵的两对角线上的元素之和 摘要:解题思路:#include<bits/stdc++.h>using namespace std;int main(){ int i,j,s=0; int n; int a[10][10]; cin>>…… 题解列表 2023年06月06日 0 点赞 0 评论 224 浏览 评分:0.0
c++入门必写题 摘要:解题思路:标记一个数 如果是素数就为1,反之为0,后面二层循环出来为1就加注意事项:无参考代码:#include <bits/stdc++.h>using namespace std;int i,j,…… 题解列表 2023年06月05日 0 点赞 0 评论 367 浏览 评分:2.0
不高兴的津津(C++实现,两种方法:vector容器和结构体数组) 摘要:解题思路:方法一:用两个vector容器,第一个存放对应日期的上课时间,再将第一个的上课时间大于8的元素存放到第二个vector容器中,对第二个容器进行升序排序操作,最后遍历第二个容器将容器出现的第一…… 题解列表 2023年06月05日 0 点赞 0 评论 708 浏览 评分:9.9
c++ 参考代码 摘要:// 任何一个数字都可以通过二进制表示 ```c++ // 任何一个数字都可以通过二进制表示 // 也就是通过对 初始值为 1 的数字反复的左移(乘以 2) 和 + 1 可以得到任意的数字 …… 题解列表 2023年06月05日 0 点赞 0 评论 756 浏览 评分:9.9
优质题解 回溯法解决全排列 摘要:这题本质上就是收集多叉树的路径问题,所以用到回溯法  > 回溯法与…… 题解列表 2023年06月04日 1 点赞 0 评论 708 浏览 评分:9.9
c++ 参考代码 摘要:最短路问题,主要是注意细节和精度问题 堆优化 dijkstra 参考代码: ``` #include #include #include #include #include …… 题解列表 2023年06月04日 0 点赞 0 评论 656 浏览 评分:9.9