Maximum Weighted Matching

HDU - 6302