Sichuan University Programming Contest 2014 Preliminary(team)

F: An Interesting Problem