3181 - Pass-Muraille   

Description

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

http://poj.org/problem?id=1230

Input

Output

Sample Input  Download

Sample Output  Download

Tags




Discuss