Sichuan University Programming Contest 2008 Preliminary (Team)

B: Sequence