Getting TLE verdict for not using lambda expression???

Revision en2, by wakaranai, 2022-02-09 11:41:11

Problem Link

TLE Code

AC Code

The only difference between the Accepted code and TLE code is that I used a lambda expression in the AC code for deleting an element from a multiset. If I do the exact same thing but without the lambda expression, it times out!! What is going on here? I'm confused.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English wakaranai 2022-02-09 11:41:11 6
en1 English wakaranai 2022-02-09 11:40:44 453 Initial revision (published)