I am having trouble solving the problem given in the link below. Since the editorial is in Japanese, I cant understand it and Google translate is not much of help either.
Link to problem — Problem D: Island Wars
Looking forward for explanation or intuition to how to approach this problem.