Sichuan University Programming Contest 2007 Preliminary

B: Bulb