题目 L2-036 网红点打卡攻略 思路 就是搜索 代码 #include <bits/stdc++.h> #define maxx 5100 #define INF 0x3f using namespace std; int vis[maxx]; int road[maxx][maxx]; //不能用memset int main() { int n, m; cin >> n >> m; while (m--) { int x, y, ll; cin >> x >> y >> ll; road