Sichuan University Programming Contest 2005 Final

H: Super Mario