Comments
+1

Problem F was really nice. Thanks authors. :blobheart:

Look at the constraints. $$$1 \leq a_i, b_i \leq n$$$. Your test case violates this constraint.

For bonus part of C, you can refer to my solution. Time Complexity: $$$O(n\;log(d)\;log(k) + n\;log(n))$$$.

https://codeforces.me/contest/1917/submission/238793642

Thanks!

Thanks. Is there a way I can see the test case?

Can anyone hack this? I did a randomized solution to D:

https://codeforces.me/contest/1895/submission/231206864

Can anyone please let me know why the first submission is giving WA on test case 6, while the second one passes?

https://codeforces.me/contest/1879/submission/224996088

https://codeforces.me/contest/1879/submission/224996243

On TalentnotDefinedSpecial Subarray, 3 years ago
+13

That's not quite true. You could have length of subarray greater than 900 if the minimum element is 0.

So I think you'll have to account for all the subarrays that contain a 0 along with the subarrays that you mentioned.

Also, one of the reason that it TLEd could be because you didn't use fast io.

problems added now

+1

Truer words were never spoken.