guesshere's blog

By guesshere, history, 13 months ago, In English

Hi everyone, referring to yesterday's problem E of atcoder beginner conest 326 Link Can somebody please explain the how to solve such problems? Does it always boil down to writing the answer for a few test cases and observing the pattern? Also can somebody please explain the editorial elaboratively?

Full text and comments »

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

By guesshere, history, 14 months ago, In English

You are given an array of positive numbers. You can can convert any element (i) to any value in range [i/2, i-1] or [i+1, 2*i] in one step. Mind minimum steps needed to make the all elements equal.

1 <= n <= 1e5

Each element in range [1,1e5]

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it