少了一个很重要的条件。
"It is guaranteed that all valval numbers are pairwise different and even."
即所有边权两两不同。
@dottle @小粉兔