Sichuan University Programming Contest 2007 Preliminary

C: Combination