Vahagn_Grigoryan's blog

By Vahagn_Grigoryan, history, 4 years ago, In Russian

I participated in contest, and I found this problem really interesting. But, unfortunately, I couldn't solve that. Can you tell me what algorithm should I use please?

| Write comment?
»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

You could read the problem editorial here.

  • »
    »
    4 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Oh, sorry for disturbing you. I didn't noticed that. Thank you.

    • »
      »
      »
      4 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      actually you have distrubed thousands of people :)