1071: 二级C语言-阶乘公式求值,c++ 摘要:##1071: 二级C语言-阶乘公式求值 *废话不多说,直接上代码* ```cpp #include using namespace std; double fact(int n){ d…… 题解列表 2023年08月06日 0 点赞 0 评论 200 浏览 评分:0.0
判断第几天c++简单代码 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>//万能头文件using namespace std;int main(){ int y,m,d,a[12]={31,…… 题解列表 2023年08月05日 0 点赞 0 评论 276 浏览 评分:10.0
链表合并c++ stl 摘要:解题思路:先排序再合并然后重新排序参考代码:#includeusing namespace std; list<pair> a,b; int main() { int n,m; ci…… 题解列表 2023年08月05日 0 点赞 0 评论 285 浏览 评分:9.9
走迷宫(bfs) 摘要:解题思路:很基础的bfs 没什么好说的 看代码即可注意事项:参考代码:#include<iostream> #include<queue> using namespace std; typede…… 题解列表 2023年08月04日 0 点赞 0 评论 321 浏览 评分:8.0
误落迷宫(dfs) 摘要:解题思路:判断该点是否在环上注意事项: 单项走 只能走过去不能走回来参考代码:#include<iostream> #include<cstring> using namespace std;…… 题解列表 2023年08月04日 0 点赞 0 评论 171 浏览 评分:9.9
最长单词 保证AC 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s,s1[100000]; ge…… 题解列表 2023年08月04日 0 点赞 0 评论 259 浏览 评分:6.0
迷宫问题(bfs)(queue,pair) 摘要:解题思路:通过宽搜 搜出每一个格子起点的距离 最终输出注意事项: 无 本就很简单的题参考代码:#include<iostream> #include<queue> using namespac…… 题解列表 2023年08月04日 0 点赞 0 评论 197 浏览 评分:9.9
c++string 可直接比较 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s,s1; cin>>s>>s1; if(s>…… 题解列表 2023年08月04日 0 点赞 0 评论 213 浏览 评分:0.0
最简单思路 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s; getline(cin,s); int …… 题解列表 2023年08月04日 0 点赞 0 评论 160 浏览 评分:0.0
蛇形填数(dfs) 摘要:解题思路:通过dfs填写最方便 详解请看代码注意事项:1、向下和向右都能走时要向右走,需要特判 2、for循环找方向时要按照下左上右的顺序 3、每…… 题解列表 2023年08月03日 0 点赞 0 评论 477 浏览 评分:9.9