链接:https://www.nowcoder.com/acm/contest/144/D
来源:牛客网
时间限制:C/C++ 1秒,其他语言2秒
空间限制:C/C++ 262144K,其他语言524288K
64bit IO Format: %lld
题目描述
Silph company deployed a passenger flow analysis system in a clothing store that captures photos of human faces and photos of human bodies in real time.
In order to analyze the passenger flow better, the system will associate human faces with human bodies. In other words, there are some edges connecting faces with bodies. Each edge has a positive weight.
However, due to lack of precision and accuracy of the algorithms provided by this company, these associations may not be completely correct.
In a correct relationship, one human face can associate with multiple human bodies (one person may change multiple suits of clothes), but one human b