Submit Dile AC Hobe Na

Competitive Programming is very popular in Bangladesh. Shuvo is a contestant from DIU-SWE. His depar…

Click here to read the complete problem statement.


If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.

@hjr265, the test cases of this problem is super weird. There is multiple whitespaces between integers. Sometimes there is whitespaces in front of the first or after the last integer of a line.
The test cases are totally messed up with whitespaces.