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

Автор vito1036, история, 8 месяцев назад, По-английски

Hi everyone!

The 18th season of COCI is starting soon! The first round will be held this Saturday, November 4th at 13: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 ppavic, ToniB, mlicul, itiamhr and me.

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

Hope to see you and good luck!

Update: the round has been moved to start 1 hour earlier because of the Meta Hacker Cup.

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

»
8 месяцев назад, # |
  Проголосовать: нравится +14 Проголосовать: не нравится

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

»
8 месяцев назад, # |
  Проголосовать: нравится +30 Проголосовать: не нравится

I like COCI. Excited :)

»
8 месяцев назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

Will register be here: https://evaluator.hsin.hr/events/? When it will be?

»
8 месяцев назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

Why the bitset is in the tags of the blog?

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

Hello, I want to register but unfortunately I cannot see the captcha, How can I do?

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

    Maybe try different browser / different device? I really don't know, it should appear.

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

Sadly Meta Hacker Cup will start as soon as this contest is ended.

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

    We'll try to move it earlier by one hour. Perfect warm up for MHC :)

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

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

»
8 месяцев назад, # |
  Проголосовать: нравится +25 Проголосовать: не нравится

With the 1h moving it overlaps 40 minutes with ABC. So the best time would have been 13.50 UTC, leaving 10 looong minutes between ABC and COCI and between COCI and MHC :D I'm joking, for this only Saturday I will give up ABC in favour of COCI

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

Reminder: the contest starts in one hour.

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

Will the results be out right after the end or will we have to wait?

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

Is there a $$$n*m$$$ solution for the problem C? I have tried 3 different $$$n*m*logn$$$ solutions but they did not pass :D (with RMQ, segment tree, and set)

Anyway, thanks for the nice problem setting!

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

    However, I did not understand why $$$n*m*logn$$$ did not pass in 4 seconds.

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

    Yes, our intent was to force O(n*m) solutions, but if optimized enough even O(n*m*logn) could pass.

    Hint
  • »
    »
    8 месяцев назад, # ^ |
    Rev. 2   Проголосовать: нравится +8 Проголосовать: не нравится

    Problem is in too big constant factor (for set/segment tree)

    For RMQ isn't memory N^2 log N? Then it was clear why it was not working

    I solved it in O(n*m*logn) with Fenwick Tree and binary search on it (bit by bit) (finding last non-zero element in cnt[20000] aray)

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

      It seems you learned reducing constant factor after the accident lol

    • »
      »
      »
      8 месяцев назад, # ^ |
        Проголосовать: нравится -30 Проголосовать: не нравится

      If you use "short int" you will be fine.

    • »
      »
      »
      8 месяцев назад, # ^ |
      Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

      Here is my NMlog^2NM solution that is AC. 2d segtree is fast enough.

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

Problem E is so annoying, where can I upsolve the problems after contest?

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

    It should be available on the tasks page in the HONI category soonish.

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

    You can now upsolve the problems here.

    Go to HONI > 2023./2024. > 1. kolo, and you should be able to see all the tasks.

»
8 месяцев назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

How E?

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

    Ah yeah, I should write it today. In short, you find a dfs-tree and fix some backedge, then by careful analysis of the other backedges you can figure out if it's good or not.

    Let (u, v) be a backedge, and let u be the node closer to the root (suppose u is not the root). Then you can think of three important components, UP (part with the root), MID (part between u and v) and DOWN (children of v). The other children of u have to be connected to UP and that can be easily checked. There are two important cases:

    1. There is some component in DOWN connected to both UP and MID. Then it is enough to check whether all the components from DOWN are connected to either UP or MID.

    2. There is no such component. Then there has to be a backedge from MID to UP. And again all DOWN components are connected to either UP or MID.

    All of the checks can be preformed with segment trees. A helpful thing to precalculate is for every node, the highest and lowest backedge going out of it. It can be done either with small to large or segment trees.

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

      Great problem btw!

      I immediately thought of DFS trees, but it seemed too complicated to track the cases, so I tried using SQRT decomposition. For nodes with more than SQRT(M) degree, do DnQ over all N nodes excluding the edges coming from that node, and for nodes with less, do a DnQ over time. But it comes out to O(sqrt(M) * log(M) * (M + N)) which sadly doesn't pass all :(

      I will try to solve it with DFS trees some day... Is there some other interesting solution for it?

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

Can you share your idea in problem B and problem C,I found problem C very interesting problem,thanks for author of problems

  • »
    »
    8 месяцев назад, # ^ |
    Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится
    Problem B
    Problem C
»
8 месяцев назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

how D?

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

Can you please add the results?

»
7 месяцев назад, # |
  Проголосовать: нравится -8 Проголосовать: не нравится

asdasdasd