Need clarification,

Revision en1, by ARIF_30, 2024-06-03 20:38:59

Hi everyone,

I solved a problem in the last contest and initially got a "Wrong Answer". After modifying my solution to use a map instead of a multiset, it got accepted. However, I’m not sure why my original solution with multiset failed.

Can anyone explain why using map worked while multiset didn't?

Thanks in advance for your help! https://mirror.codeforces.com/contest/1980/submission/264037860 (**WA**264037860) https://mirror.codeforces.com/contest/1980/submission/[submission:263990207](AC)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English ARIF_30 2024-06-03 20:39:43 10 Tiny change: 'ubmission/[submissio' -> 'ubmission/263990207 [submissio'
en1 English ARIF_30 2024-06-03 20:38:59 537 Initial revision (published)