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

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

Very interesting contest.

But, how to solve task L, G and J?

Thanks in advance.

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

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

L: For each color check all cells in its bounding box. It will work in O(n3), because if bounding box has dimensions w and h, then there should be at least w + h - 1 cells of this color.

J: Run 1 iteration of Boruvka's algorithm.

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

G: We can take size of each pile module A + B.

Proof

Only one player can make a move on the one pile, because size of pile < A + B. Then both players should always choose the biggest pile, so we can just iterate the process.

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

How to solve The Most Expensive Gift?
Our solution was to check all possible cycles of length <= 6. And it got AC. I am not sure if it is right.

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

Lost 20 minutes on E thinking why TC #4 is going to be correct but not Error :D But later realised that Error can be correct.

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

How to solve I?

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

    Count occurrences of "1" in each line and each row. Then go up->down, and later left->right, and try to cut pie. After you cut it into n^2 pieces, check every peace if it has exactly 1 "1".

    (UPD: somehow Div.2 I is not same as in Div.1 but corresponds to D)

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

    It seems we never need to take balls from three different boxes. Does anyone have a proof?

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

      I’m not sure it’s ok, but I believe there is an equivalent problem, where after you get a ball, you remove all balls with the same color, and the game ends when there are some empty set of boxes which initially had at least 2 balls of some color. This is a state game, where the state is the mask of balls that you removed. And all the final states can be covered by states where you emptied one or two boxes (and possibly some other along the way, but they are irellevant). There is only one minimax path along this graph, and it will always end up in some state where you emptied one or two boxes. Now, supposing that you have infinite computing power and you find the optimal final state to converge to, you can then apply the strategy to only clear those boxes.

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

        It should probably be

        ... when there are some empty set of boxes which ((initially had at least 2 balls of some color) or (we didn't get box from them yet))

        because it's possible there are no duplicates in boxes at all.

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

How to solve H? I got WA 41

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

How to solve C?

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

You may want to check out our short descriptions of the solutions.

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

Explain, please, how to participate Grand Prix of Ukraine ???

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

How can I upsolve the contest?

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

В div. 2 названия задач с H по L в ejudge не соответствуют реальным. К кому обратиться, чтобы пофиксили? Если неверные останутся в дорешивании, то будет крайне неудобно.

pic

UPD. Пофиксили. Спасибо!

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

Where can I find the problemset?