rakkoon69's blog

By rakkoon69, history, 21 month(s) ago, In English

Can someone please explain to me why this 195043061 gives WA on test 7 while 195042850 got AC. The only difference is the first submission used Map while the second one used Set. Thanks in advance!

  • Vote: I like it
  • +9
  • Vote: I do not like it

»
21 month(s) ago, # |
  Vote: I like it +15 Vote: I do not like it

Your code checks map and inserts new values when it's not found. This code uses map.count and passes.

https://mirror.codeforces.com/contest/1709/submission/195051921