Mr_Epsilon_Delta's blog

By Mr_Epsilon_Delta, history, 4 hours ago, In English

Here's the problem: https://codeforces.net/contest/2024/problem/D Here's my solution: https://codeforces.net/contest/2024/submission/287835290

I think my code is logically correct, but I am unable to pass test 6 due to TLE.

Help me figure this out please.

  • Vote: I like it
  • -2
  • Vote: I do not like it

»
2 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

Your priority queue is currently like a max heap, use a min heap.