#include #include #include #include #define Maxn 15010 using namespace std; struct line{ int u,v,w; line(){} line(int uu,int vv,int ww):u(uu),v(vv),w(ww){} bool operator<(const line &a)const{ return w>t; while(t--){ cin>>n>>m; for(int i=0;i