Why am I getting wrong answer with PBDS ??

Revision en2, by DPUYDV, 2023-07-23 12:01:27

I was solving problem Buying gifts. I am getting wrong answer if I use ordered_multiset(pbds) submission link. If I use std::multiset instead of ordered_multiset than solution gets accepted submission link. Can somebody explain why and what am I doing wrong???

Note : Sorry for my bad English.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English DPUYDV 2023-07-23 12:01:27 15
en1 English DPUYDV 2023-07-23 11:54:09 492 Initial revision (published)