Sichuan University Programming Contest 2018 Preliminary

G: 聚散苦匆匆,此恨无穷。今年花胜去年红。