摘要: 问题 B: 最优乘车 #include<bits/stdc++.h> using namespace std; int m,n,vis[501]; vector<int> g[501];int st; void bfs(){ queue<int> q; while(!q.empty())q.pop( 阅读全文
posted @ 2023-07-26 16:35 臧清宇 阅读(53) 评论(0) 推荐(1)
摘要: 问题 C: 信使 #include<bits/stdc++.h> using namespace std; const int INF=0x3f3f3f3f; int n,m; bool vis[2503]; int d[2503]; struct node{ int v,w; }; vector< 阅读全文
posted @ 2023-07-26 16:27 臧清宇 阅读(62) 评论(0) 推荐(1)