#include using namespace std; typedef long long LL; const int maxn = 110; const int inf = 0x3f3f3f3f; struct node { int u,v,w,id; char s[5]; friend bool operator<( const node&a , const node&b ) { return a.w