Sichuan University Programming Contest 2009 Preliminary (Single)

C: Dahema's Computer