Please read the new rule regarding the restriction on the use of AI tools. ×

Need clarification,
Difference between en1 and en2, changed 10 character(s)
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**[submission:264037860])↵
https://mirror.codeforces.com/contest/1980/submission/
263990207 [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)