洛谷P2764 最小路径覆盖问题
#include <bits/stdc++.h>
using namespace std;
const int N=1e4+10,inf=0x3f3f3f3f,M=2e6+1;
int n,m;
int tot=1;
int head[N],ver[M],nxt[M],edge[M];
void add(int u,int v,int w=0){
ver[++tot]=v,nxt[tot]=head[u],head[u]=tot,edge[tot]=w;
}
bool v[N];
int m.
原创
2022-04-17 19:42:59 ·
539 阅读 ·
0 评论