Problem Link: https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=676
My problem with is Problem: I'm trying to understand this problem,but unable to understand it.please explain this problem with suitable example and the test cases mentioned in the problem. NB: I googled about this problem.but can't find any good blog.