Editorial-JKBMB

PROBLEM LINK:

https://www.codechef.com/COWS2016/problems/JKBMB

Author: acesprime

Tester: acesprime

Editorialist: acesprime

DIFFICULTY:

MEDIUM

PREREQUISITES:

BFS,DFS

AUTHOR’S AND TESTER’S SOLUTIONS:

http://ideone.com/0EsNbs