Sichuan University Programming Contest 2018 Preliminary

H: 可惜明年花更好,知与谁同?