King's Path: http://codeforces.com/problemset/problem/242/C
King's Path: http://codeforces.com/problemset/problem/242/C

paramsingh/codechef-solutions,paramsingh/cp,paramsingh/cp,paramsingh/codechef-solutions,paramsingh/codechef-solutions,paramsingh/codechef-solutions,paramsingh/cp,paramsingh/cp,paramsingh/cp