#948. 小P的生成树
小P的生成树
输入样例1
3 3
1 2 1 3
2 3 2 2
3 1 3 1
输出样例1
5.830952
输入样例2
6 9
1 2 4 -1
2 3 4 1
3 4 -1 -5
1 5 -4 0
4 6 1 -6
2 6 -6 0
5 6 -7 5
2 4 7 1
1 4 -9 -5
输出样例
27.459060
Statistics
Related
In following contests:
3 3
1 2 1 3
2 3 2 2
3 1 3 1
5.830952
6 9
1 2 4 -1
2 3 4 1
3 4 -1 -5
1 5 -4 0
4 6 1 -6
2 6 -6 0
5 6 -7 5
2 4 7 1
1 4 -9 -5
27.459060
In following contests:
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.