c++城市路(bfs+优先队列) 摘要:```cpp#include #include using namespace std;const int INF=0x3f3f3f3f;vector edge[2005];…… 题解列表 2025年03月25日 0 点赞 0 评论 42 浏览 评分:0.0
c++分糖果(dijkstra求最短最远距离) 摘要:解题思路:要保证所有孩子吃完糖果,那不就意味着一定是求从起点到最远的距离且点与点之间的权值为1,相当于最远距离+最后一个孩子吃完的时间+题意描述给予第一个孩子的时间为1(the_most_far_di…… 题解列表 2025年03月25日 0 点赞 0 评论 29 浏览 评分:0.0
C++:map容器 算暴力遍历 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<map>using namespace std ;int main ( ){&n…… 题解列表 2025年03月25日 0 点赞 0 评论 21 浏览 评分:0.0
数列有序:极简(不用数组,输入时同时输出) 摘要:解题思路:极简,输入时同时输出注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;consti…… 题解列表 2025年03月25日 0 点赞 0 评论 27 浏览 评分:0.0
数列排序- 模拟+数组元素移动 摘要:解题思路:模拟+数组元素移动+插入数组注意事项:参考代码:#include<iostream>usingnamespacestd;constin…… 题解列表 2025年03月25日 0 点赞 0 评论 49 浏览 评分:0.0
c++热浪(贪心+优先队列) 摘要:```cpp#include #include using namespace std;const int INF=0x3f3f3f3f;int T,C,Ts,Te;vec…… 题解列表 2025年03月25日 0 点赞 0 评论 37 浏览 评分:0.0
景区导游(LCA详解) 摘要:#include<bits/stdc++.h>using namespace std;typedef long long ll;const int N = 1e5 + 5;int fa[N…… 题解列表 2025年03月24日 0 点赞 0 评论 138 浏览 评分:0.0
输入输出练习之浮点数专题,基于C++语法 摘要:**解题思路:** 看过其他人的题解,但语法大多都是基于 `C` 语言的,虽然符合题目要求,但这就不是 `C++` 了,于是我打算写一个基于 `C++` 语法的题解。值得一提…… 题解列表 2025年03月23日 1 点赞 0 评论 82 浏览 评分:10.0
简易1044c++方法 摘要:解题思路:使用set排序,但是set会删除重复数据,所以使用multiset参考代码:#include <iostream>#include<set>#include<i…… 题解列表 2025年03月23日 0 点赞 0 评论 73 浏览 评分:0.0
你的开发任务 摘要:解题思路:看带码注意事项:无参考代码:#include<bits/stdc++.h>usingnamespacestd;void…… 题解列表 2025年03月23日 0 点赞 0 评论 46 浏览 评分:0.0