Sichuan University Programming Contest 2014 Preliminary(team)

J: Please call me welfare