这样最后两个点re,我把它们都扩大一百倍就AC了
int n,m,s,t,u,v, head[5020],tot=1; ll w,ans; struct A{ int to,nxt; ll w; }e[5020]; int dep[2020],now[5020];