Need clarification,

Revision en2, by ARIF_30, 2024-06-03 20:39:43

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://codeforces.net/contest/1980/submission/264037860 (**WA**264037860) https://codeforces.net/contest/1980/submission/263990207 submission:263990207

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)