会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Coder何
博客园
首页
新随笔
联系
订阅
管理
2024年11月26日
1030 Travel Plan(dijsktra + dfs/bfs + 回溯)
摘要: 题面意思比较清晰,就是优先最短路,同距离取最小花费。 1 #include<bits/stdc++.h> 2 using namespace std; 3 int n, m, s, d; 4 typedef pair<int, int> pii; 5 vector<pii> graph[505];
阅读全文
posted @ 2024-11-26 21:30 Coder何
阅读(23)
评论(0)
推荐(0)