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

Автор keko37, история, 2 года назад, По-английски

Hi everyone!

The fourth round of COCI will be held tomorrow, January 29th at 14:00 UTC. You can access the judging system here. If you are not familiar with COCI contest format, we encourage you to read the announcement.

The round was prepared by ominikfistric, Bartol, paula, pavkal5, and me.

Feel free to discuss the problems in the comment section after the contest ends.

Hope to see you tomorrow!

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

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

The timing does not work for me, unfortunately. But I really want to try the problems. How can I virtual it (or upsolve the problems)?

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

    You can view old COCI problems on the judge by going to tasks (HONI). The problems from this round will be added once the round is over, within a day or two.

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

Any success with adding rust?

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

If you want to try to do C in linear time, here's a version with higher bounds.

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

How the fuck have ~50 people managed to solve the third problem? Is there any easy solution which I could not find? I see two solutions with either sqrt decomposition or divide and conquer plus some tricky observations, O(N*log^2(N)) or O(N*sqrt(N)) complexities.

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

    I think the idea of problem C might be a bit classic and old. It has appeared in a Chinese contest about five years ago, and also in the contest mentioned by xiaowuc1. So probably some of the participants have seen this problem before.

    I'm not sure of the details of your sqrt decomposition approach, but if your method is to enumerate the majority element — then with only minor modifications you can get a beautiful $$$O(n)$$$ approach.

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

problem Parkovi (D) is similar to Atcoder ARC116_E — Spread of Information

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

Can someone please explain the idea behind problem B?

My approach:

I got 40/70 pts, so I'm wondering if my approach is nearly correct or if I'm actually completely wrong.