what is the input pattern of this question… should I take the input of each test case with a one line gap as given in the sample test cases OR without a line gap…
If I don’t read the gap then there is NZEC in some subtasks and IF I read the then I got NZEC in other subtasks…
Because typically in Java we read the input line by line and if format is not the same it’s causing the problems… Format have to be exactly the same as described, they expect us to print also exactly the same output as described in problem statement…