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

Автор whipppedcream, история, 10 лет назад, По-английски

Right now IOI 2016 is in progress. I'm sure a lot of you guys will be watching, so this post was created to let you guys talk about the scores and the scoreboard in the comments :) The link to the scoreboard is here.

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

»
10 лет назад, скрыть # |
 
Проголосовать: нравится +10 Проголосовать: не нравится

Bolivia is in the top Scoreboard for the first time in history! I have great expectations for this year! GO BOLIVIA!

»
10 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

Day 1 is over, and a lot of contestants have fully solved Task 1. What are your thoughts on the problems (and maybe your approaches)?

  • »
    »
    10 лет назад, скрыть # ^ |
    ← Rev. 3  
    Проголосовать: нравится +30 Проголосовать: не нравится

    I think this solves 1:

    • Sorter the input
    • Take the k smallest elements, such that their sum is less than l, but if you took k+1 it would be larger than u. (If you can't do that, the problem is either easy: a sum lands inside the interval; or impossible: the total element sum is smaller than l)
    • One by one, change one of the k elements for one of the k largest elements.

    When you change an element, the sum can never increase by more than w_max - w_min <= u - l, so there is no risk of 'jumping' over the [l, u] interval.

    If the sum of the largest k is still smaller than l, then there is no solution, because the next subset in order of sum is the k+1 smallest elements, which we know is too large.

    This solution should take time equal to sorting, which should be fine for n = 200,000.

    I thought it was a fun problem :-)

»
10 лет назад, скрыть # |
 
Проголосовать: нравится -6 Проголосовать: не нравится

3 from China ,2 form Russia in top 5 . but how??

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

When are day 2 problems coming out?