If I’m not wrong, in the contest ECJN201 in the encoding June’20 contest there are 2 cases. One mentioned in the explanation of the question and other in Sample Input. Both cases give different directions on how to find the output.
Do tell me if I ain’t right.
PS: not asking for the solution