Sichuan University Programming Contest 2006 Preliminary

B: Spanning trees in a fan