vector to[16],cost[16]; ll dp[1d5][16]; { ll@n, @m; rep(m){ ll@u,@v,@c; to[--u].push_back(--v); cost[u].push_back(c); to[v].push_back(u); cost[v].push_back(c); } dp[0..(1<?= dp[s][v]+cost[v][i]; } ll ans=0; ans >?= dp[0..(1<