Help with Problem — C , #641 , Div-2

Revision en1, by Ferrarixxx, 2020-05-16 12:19:25

Hi Am writing this because am highly desperate to find my mistake.

Please help me find mistake in my approach which is same as that of editorial
except that i used map and priority_queue
For Problem C ( https://codeforces.me/contest/1350/problem/C )

Am getting WA on test case — 4
https://codeforces.me/contest/1350/submission/80297500

I HAVE COMMENTED MY APPROACH IN MY CODE , WRT ALL THE STEPS
PLEASE HAVE A LOOK

THANKS IN ADVANCE.

Editorial Link : https://codeforces.me/blog/entry/77284

Tags #help me, #help, #problem c

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Ferrarixxx 2020-05-16 12:19:25 583 Initial revision (published)