Sichuan University Programming Contest 2007 Final

B: Bad Mice