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

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

The FIICode Final Round will take place Saturday, from 7AM to 10AM (UTC).

We will host an online mirror on CSAcademy at 10:05 (UTC). It will last 3 hours. We invite everyone to join.

Edit: mirror link The difficulty will be similar to a div 1 Codeforces contest. This round will be rated :)

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

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

Auto comment: topic has been updated by Juve45 (previous revision, new revision, compare).

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

Auto comment: topic has been updated by Juve45 (previous revision, new revision, compare).

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

Rated contest in CSA :o

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

The solutions have just been published, with extra bonus challenges.

Can you solve problem F's bonus challenge?

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

Even though the editorial for E is simple, there is another easy solution to E (one with no edges cases);

We can treat this as a 1 player game for P1. For each removal of a $$$b$$$, P1 gets 1 point. After all operations, for each sequence of $$$X$$$ $$$a$$$'s, P1 loses $$$\lfloor X/3 \rfloor$$$ points. P1 wins iff the maximal amount of points he can get is positive.

We can solve with dp: $$$dp_{i, j}$$$ is the maximal amount of points P1 can get, if we only consider the prefix of length $$$i$$$, and the last sequence of $$$a$$$'s was of length $$$j$$$ (modulo 3). Transitions are easy in constant time.

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

    That’s right. In fact, both our accepted solutions for E were done using this idea. (during the contest)

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

i am unable to submit to the tasks on CSA since the contest has ended. does anyone else have the same issue?