演算法:Havel-Hakimi
AC程式碼附註解 : https://github.com/PaceyYu886/APCS-Analysis/blob/main/ZeroJudge%20problem%20b599.%20Graph%20Construction