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