Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

maniratnagupta's blog

By maniratnagupta, history, 6 years ago, In English

Bulbs/651A

submission of my solution

Why is my logic going wrong?

  • Vote: I like it
  • -10
  • Vote: I do not like it

»
6 years ago, # |
  Vote: I like it 0 Vote: I do not like it

You are interpreting numbers as string and then using Distinct(). Think of what happens when two digit numbers appear in input and Distinct which interprets them as character acts on them.