Sichuan University Programming Contest 2013 Final (Team)

F: Permutation Again