1938: 蓝桥杯算法提高VIP-道路和航路 摘要:解题思路:有负权的单源最短路径,使用spfa算法即可注意事项:不进行SLF优化会超时两个点参考代码:#include<bits/stdc++.h> using namespace std; str…… 题解列表 2024年03月14日 0 点赞 0 评论 502 浏览 评分:0.0
蓝桥杯算法提高VIP-道路和航路-SPFA+deque (C++代码) ```cppincludeincludeincludedefineMAX150000defineINF100000000usingnamespacestd;structNode{intto;//该边下一个节点intw;//路程花费intnext;//所指向节点的下一个边}edge[MAX];intdi 题解列表 2020年02月25日 0 点赞 1 评论 855 浏览 评分:6.0
蓝桥杯算法提高VIP-道路和航路 (C++代码) 摘要:参考代码:#include <bits/stdc++.h> constexpr auto Inf = 0X3F3F3F3F; typedef long long LL; using namesp…… 题解列表 2019年03月22日 0 点赞 0 评论 1751 浏览 评分:9.9