Sichuan University Programming Contest 2014 Preliminary(team)

G: Misaka Mikoto¡¯s game