Блог пользователя water

Автор water, 11 лет назад, По-английски

what's wrong with my code of 158_DIV2_C? Here is my submission:2847080

  • Проголосовать: нравится
  • -8
  • Проголосовать: не нравится

»
11 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

You should choose another minimum element, that test is like this one: 10 8 1 1 0 1 1 1 0 1 1 1

Your code chooses first 0, but it needs to take second.

  • »
    »
    11 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Thank you, I figure out that the minimum element should be the nearest element before the number x.

    • »
      »
      »
      11 лет назад, # ^ |
        Проголосовать: нравится -6 Проголосовать: не нравится

      But don't forget about situation when minimum elements are situated after number x