CaP_TaIn's blog

By CaP_TaIn, 5 hours ago, In English

During solving this problem(Problem Link) I first used set for maintaing count of the cases but it was giving wrong ans on test5 but when I used integer for count it passed all test cases and i'm unable to find why using set giving wrong ans.

here are my submissions : 1)using set:286839990 2)using integer:286840330

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

»
5 hours ago, # |
  Vote: I like it +7 Vote: I do not like it

Auto comment: topic has been updated by CaP_TaIn (previous revision, new revision, compare).

»
3 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

to me both seems similar and correct. I'm also interested to know why set one fails