why priority_queue is not behaving as expected?

Revision en1, by ToErr, 2018-09-17 20:06:30

this submission using priority_queue is giving TLE : http://codeforces.net/contest/467/submission/43003735

where using set giving AC : http://codeforces.net/contest/467/submission/43003953

problem link: http://codeforces.net/contest/467/problem/D

could anyone point me out what is wrong here! i am literally not getting the point :(

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ToErr 2018-09-17 20:06:30 389 Initial revision (published)