2012 summer practice contest 2

H: 完美交换