ACM/ICPC集训队组队积分赛1

G: Trip the Lights Fantastic