[UVA][並查集] 11323 - Satisfying Constraints
Problem A: Satisfying Constraints
Consider the following constraint satisfaction problem. You are given n variables
x1, x2, ..., xn
and a set of m two-variable linear constraints. Each constraint takes the form
axi + bxj = c where a, b, and c are integer constants...