3529 - Grandpa's Walk   

Description

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

Input

Output

Sample Input  Download

Sample Output  Download

Tags




Discuss