3294 - (*) The Great Wall Game   

Description

https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&category=39&page=show_problem&problem=1277

Input

Output

Sample Input  Download

Sample Output  Download

Tags




Discuss