wgraphg; int@n,@m,@x,@(u--,v--,ll c,t)[m]; c[0..m-1]+=t[0..]*(ll)x; g.setEdge(n,m,u,v,c); ll z=g.getDistT(0,n-1,(ll)-1); wt(z<0?-1:z/+x);