I am trying to solve this problem ( https://kth.kattis.scrool.se/problems/zbrka ) for sometimes. But I don't have any clue how to solve this problem. Can anyone please explain how to solve this problem.
Thanks in advance for your help.
I am trying to solve this problem ( https://kth.kattis.scrool.se/problems/zbrka ) for sometimes. But I don't have any clue how to solve this problem. Can anyone please explain how to solve this problem.
Thanks in advance for your help.
http://hsin.hr/coci/archive/2006_2007/contest4_solutions.zip