Sichuan University Programming Contest 2017 Final(team)

G: Mathon Structure