Help in Round1054 Problem G

Revision en1, by alyosha, 2025-09-27 11:53:51

https://codeforces.me/contest/2149/submission/340722817 this is my submission it is failing by TLE on testcase 15. I don't understand why. I have implemented the same approach as given in the editorial. I compress the values of array A and the do 50 tries of randomly checking if count of some value in [L, R] > (r — l + 1)/3.

Any help will be appreciated. Thanks

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English alyosha 2025-09-27 11:53:51 405 Initial revision (published)