1388: GC的苦恼,c++代码实现 摘要:##1388: GC的苦恼 ***废话多说,直接上代码*** ```cpp #include using namespace std; int main(){ int a; whil…… 题解列表 2023年08月06日 0 点赞 0 评论 390 浏览 评分:0.0
1071: 二级C语言-阶乘公式求值,c++ 摘要:##1071: 二级C语言-阶乘公式求值 *废话不多说,直接上代码* ```cpp #include using namespace std; double fact(int n){ d…… 题解列表 2023年08月06日 0 点赞 0 评论 326 浏览 评分:0.0
判断第几天c++简单代码 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>//万能头文件using namespace std;int main(){ int y,m,d,a[12]={31,…… 题解列表 2023年08月05日 0 点赞 0 评论 409 浏览 评分:10.0
链表合并c++ stl 摘要:解题思路:先排序再合并然后重新排序参考代码:#includeusing namespace std; list<pair> a,b; int main() { int n,m; ci…… 题解列表 2023年08月05日 0 点赞 0 评论 486 浏览 评分:9.9
蓝桥杯算法训练VIP-学生成绩 C++ STL 摘要:# stable_sort 排序函数 ```c++ #include #include #include using namespace std; int n; const int N …… 题解列表 2023年08月04日 0 点赞 0 评论 418 浏览 评分:0.0
单链表——约瑟福问题 摘要:解题思路:构建一个单向的环形链表思路1.先创建第一个节点,让First指向该节点,并形成环形2.后面当我们每创建一个新的节点,就把该节点,加入到已有的环形链表中即可。遍历环形链表1.先让一个辅助指针(…… 题解列表 2023年08月04日 0 点赞 0 评论 457 浏览 评分:9.9
1的个数 C++实现 摘要:```c++ #include #include #include using namespace std; int n; vectornums; int main() { …… 题解列表 2023年08月04日 0 点赞 0 评论 521 浏览 评分:0.0
走迷宫(bfs) 摘要:解题思路:很基础的bfs 没什么好说的 看代码即可注意事项:参考代码:#include<iostream> #include<queue> using namespace std; typede…… 题解列表 2023年08月04日 0 点赞 0 评论 502 浏览 评分:8.0
误落迷宫(dfs) 摘要:解题思路:判断该点是否在环上注意事项: 单项走 只能走过去不能走回来参考代码:#include<iostream> #include<cstring> using namespace std; …… 题解列表 2023年08月04日 0 点赞 0 评论 295 浏览 评分:9.9
最长单词 保证AC 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s,s1[100000]; ge…… 题解列表 2023年08月04日 0 点赞 0 评论 417 浏览 评分:6.0