蓝桥杯2021年第十二届国赛真题-二进制问题 #C++#dfs 摘要:```c++ #include using namespace std; typedef long long ll; typedef pair PII; const int N = 1e…… 题解列表 2023年06月06日 0 点赞 0 评论 519 浏览 评分:9.9
普通的写法 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;const int N =10010;int a[N];…… 题解列表 2023年06月06日 0 点赞 0 评论 753 浏览 评分: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 评论 307 浏览 评分:0.0
c++入门必写题 摘要:解题思路:标记一个数 如果是素数就为1,反之为0,后面二层循环出来为1就加注意事项:无参考代码:#include <bits/stdc++.h>using namespace std;int i,j,…… 题解列表 2023年06月05日 0 点赞 0 评论 459 浏览 评分:2.0
不高兴的津津(C++实现,两种方法:vector容器和结构体数组) 摘要:解题思路:方法一:用两个vector容器,第一个存放对应日期的上课时间,再将第一个的上课时间大于8的元素存放到第二个vector容器中,对第二个容器进行升序排序操作,最后遍历第二个容器将容器出现的第一…… 题解列表 2023年06月05日 0 点赞 0 评论 872 浏览 评分:9.9
c++ 参考代码 摘要:// 任何一个数字都可以通过二进制表示 ```c++ // 任何一个数字都可以通过二进制表示 // 也就是通过对 初始值为 1 的数字反复的左移(乘以 2) 和 + 1 可以得到任意的数字 …… 题解列表 2023年06月05日 0 点赞 0 评论 866 浏览 评分:9.9
优质题解 回溯法解决全排列 摘要:这题本质上就是收集多叉树的路径问题,所以用到回溯法  > 回溯法与…… 题解列表 2023年06月04日 1 点赞 0 评论 815 浏览 评分:9.9
c++ 参考代码 摘要:最短路问题,主要是注意细节和精度问题 堆优化 dijkstra 参考代码: ``` #include #include #include #include #include …… 题解列表 2023年06月04日 0 点赞 0 评论 790 浏览 评分:9.9
[编程入门]自定义函数之字符串拷贝 摘要:```cpp #include using namespace std; int main(){ char a[400]; int n,m; cin>>n; cin>>a; …… 题解列表 2023年06月04日 0 点赞 0 评论 416 浏览 评分:0.0
1029: [编程入门]自定义函数处理素数 摘要:#[编程入门]自定义函数处理素数 ```cpp #include using namespace std; bool f(int a){ bool k=true; for(int i=…… 题解列表 2023年06月04日 0 点赞 0 评论 414 浏览 评分:0.0