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

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

Hi all,

The Central European Olympiad in Informatics (CEOI) 2022 is starting on Sunday and we'd like to invite you to participate in two online mirror contests that will feature the same problems as the two competition days.

The day 1 mirror will take place on Tuesday, July 26th, 10:00 CEST, and day 2 mirror will take place on Thursday, July 28th, 10:00 CEST. Both contests will last for 5 hours, contain 3 IOI-style problems, and have full-feedback.

In order to participate in the CEOI 2022 Online Mirror contests, you'll need an account on evaluator.hsin.hr. After logging in, you can register for the Mirror contests on the "Events" page.

Hope you'll enjoy the contests.

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

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

Btw, evaluator.hsin.hr is amazing online judge.

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

EDIT: The starting time of the mirror was wrong. The mirror starts at 10 am local time. Sorry for the inconvenience.

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

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

Is there any way to register late for the mirror?

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

    We've increased the registration period. You can register up to 14 CEST.

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

Is Abracadabra just

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

    un/fortunately yes (or maybe not lol)

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

    You can do it using only segment tree

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

      wtf how

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

        You can recover the permutation if you know the prefix maximums.

        I used a segtree,a Sparse Table and a set.

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

          Why are u using register so much?

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

            I found someone else using register when I started learing and I kept using it until now even when I know it is useless, it's hard to change.

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

          Can you explain a bit?

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

    You can do it using only BIT.

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

really liked the part of the contest where i got to implement the problems

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

Is it possible to get a full score with sqrt-decomposition in Abracadabra?

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

Was the mirror same as the real contest in terms of time limits and the judging machines? I struggled a lot with Time Limit in "P3. Prize". My time complexity is $$$O(N + (K + T) \cdot \log N)$$$ and only got 19/100 points.

Could it matter that I answered queries immediately instead of all at once? I didn't flush the output each time so it should be ok, right?

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

    Me the same. I struggled with (19/100) TLE for a really long time!!Then I accidentally changed my way of answering queries and passed!!

    I used to answer queries one by one, flushing my output every time I read a new one.

    Then I changed to reading all the queries at once and it passed. I really don't know why..

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

    I tried out locally (on prize.in.1a) your last submission that scored 19 pts, and it didn't finish under 20 seconds (then I killed it).

    Didn't analyze the code, but it doesn't look like it's due to the way you answer queries.

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

      Was it some special test? I tried chain, star, random tree — each type was below 1s locally.

      EDIT: I've just downloaded that test from the system. I get 0.15s locally, strange. Maybe there is UB, I will try to figure it out.

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

      Where can i upsolve this contest?

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

    the same happened to me in the real contest :( , it’s most probably from the way queries are answered…

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

    Yes, I am 99,9% sure that was the problem. I've spent more than 2 hours optimizing everything in my code, but still got 19/100. I started reading queries first, and only than answering. Got 100 immediately. And yeah,I didn't flush either and was sure it should be fine. Very frustrating...What's worse, there are official contestants who got 19 points on this problem. Likely those were the absolutely correct solutions, cause solving only sub task K<=200 is almost impossible(at least I think so).

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

When will CEOI day1 results be published?

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

I think B is similar to this CF problem.

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

I don't understand the point of such tight limits in an interactive problem.N<=2000 would have been completely fine as well.The only additional thing required for higher N is how find distance between 2 nodes in O(logn) which is well-know and doesn't serve any purpose

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

    The main point of large N was to differentiate between subtasks 3 and 4 (gauss vs erdos). This also influenced some of the decisions regarding time limits.

    Our solutions and all of the testers that solved the problem fit it comfortably under 3.5 seconds (2-2.5 seconds usually), and we didn't feel it would cause many problems in the contest.

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

      comfortably under 3.5 seconds

      2-2.5 seconds usually

      pick one

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

      maybe the high constraints on N and T wouldn’t have caused any problems if the interactor wasn’t so janky

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

How to upsolve problems?

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

Can someone explain how to solve Abracadabra and Prize?

  • »
    »
    21 месяц назад, # ^ |
      Проголосовать: нравится +11 Проголосовать: не нравится
    Abracadabra
  • »
    »
    21 месяц назад, # ^ |
      Проголосовать: нравится +23 Проголосовать: не нравится
    Prize
    • »
      »
      »
      21 месяц назад, # ^ |
        Проголосовать: нравится +68 Проголосовать: не нравится

      Alternatively:

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

Did anyone mange to get $$$O(n^2)$$$ complexity to get the $$$n=10^4$$$ subtask on A? I think calling atan2 $$$10^8$$$ times probably made it TLE. I changed it to dot product but now it WAs for some weird reason

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

I wonder whether making tests for these problems is harder than the problems themselves

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

Is there a way to submit? I'm still struggling with C. I found it difficult to implent, is there a good way to do it?

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

    I lost all my time trying to debug it. on the one hand I want to find the bug now and finally get ac, but on the other hand I don't want to see that problem ever again :'D

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

I have a though about Drawing, but i am not sure that isn't it is the correct solution.Because the node can adjacent to more than three other nodes in this solution.

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

    I may be found a similar solution. Firstly choose the uppermost point and set it as root. Then polar sort all of the points according to root. We'll continue with the leftmost available vertex for the first child of the root, now when we look at the process, we're again at a plane with some points and we rooted it from some convex hull point. Implementation:(dfs2 and the polar sort) Your text to link here..., I really feel like the solution is wrong btw. (Also the checker is corrupted probably, for(int i = 1; i <= n; ++i) gets AC).

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

All accepted solutions of CEOI 2022

(Warning: my solution to drawing is garbage.)

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

    Can you explain how to solve drawing?

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