Ad
  • Default User Avatar

    In 209917 min is found on index 1 and moved to index 0. I'm also surprised why it's the other way.

  • Default User Avatar

    What shoud I do if input length is not a multiplication of 8? Some random tests are failing for my solution. Should I cut bits, add padding of leading zeroes?

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    because Vasya is not so careless as to lose the 50 the 5th person hands over to him

  • Default User Avatar

    Test 6 is wrong. As input you have: 25, 25, 25, 25, 50, 100, 50.
    First 4 elements go into Vasya's pocket:
    25, 25, 25, 25 || 50, 100, 50.

    Then comes 50, so he needs to give 25:
    25, 25, 25 || 100, 50

    Then comes 100, so he needs to gove 75:
    0 || 50.

    Then comes 50...

    How can this test pass?

  • Default User Avatar

    Oh come on! Test 6 is wrong. [25, 25, 25, 25, 50, 100, 50] this cannot be "YES" :( Can author correct that?

    As input you have: 25, 25, 25, 25, 50, 100, 50.
    First 4 elements go into Vasya's pocket:
    25, 25, 25, 25 || 50, 100, 50.

    Then comes 50, so he needs to give 25:
    25, 25, 25 || 100, 50

    Then comes 100, so he needs to give 75:
    0 || 50.

    Then comes 50...

    How can this test pass?