7630 - Burning Bridges   

Description

 http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2588

Input

Output

Sample Input  Download

Sample Output  Download

Tags




Discuss