I am getting result “WA” in Sub-Task 1. Here is my solution:
From what I read about “WA” (wrong answer) result it means that my response is not correct. But the test result is OK per the test input and output given in the problem page.
Here is the problem page:
Does anybody know what can be wrong with my code? I spent a lot of time trying to figure that out with no success.
Per problem statement, Sub-Task 1 is:
Sum of Qi over all test cases and days ≤3.10^6
But I sincerely did not understand that.
One more question. I noticed that all submissions are without comments. Is there a rule not to comment the code submitted?