求助,Prim

P3366 【模板】最小生成树

@[LFYdemi](/user/821849) 把0x3f变成2147483647
by untitled_cpp @ 2024-08-24 14:30:04


@[untitled_cpp](/user/1238374) thx,此贴街~已棺
by LFYdemi @ 2024-08-24 14:33:28


```cpp vis[x]=1; for(int i=0;i<g[x].size();i++){ int v=g[x][i].v,w=g[x][i].w; if(dis[v]>w) dis[v]=w; } ``` 看不懂,想问问你这是什么意思
by szrgjxms @ 2024-08-24 14:34:14


@[LFYdemi](/user/821849) 深金
by untitled_cpp @ 2024-08-24 14:38:05


|