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](https://abc103.contest.atcoder.jp/tasks/abc103_dhttp://)↵
↵
Looking forward for explanation or intuition to how to approach this problem.
↵
Link to problem — [Problem D: Island Wars](https://abc103.contest.atcoder.jp/tasks/abc103_dhttp://)↵
↵
Looking forward for explanation or intuition to how to approach this problem.