E869120's blog

By E869120, 4 years ago, In English

Hello everyone!

JOI Open Contest 2021 will be held from Sunday, June 6, 04:00 UTC to Monday, June 7, 04:00 UTC. You can start any time and the duration is basically 5 hours. Note that the duration becomes shorter if you start after Sunday, June 6, 23:00 UTC, i.e. less than 5 hours before the contest ends.

There will be 3 tasks, and the maximum score for each task is 100 points. Since this is an IOI-style contest, there may be some subtasks. Each submitted source program must be written only in C++. Problem statements will be provided both in Japanese and in English. You can find more details in the contest page.

Past contests are also available in this page, and you can test your code in oj.uz website.

Good luck and have fun!

  • Vote: I like it
  • +210
  • Vote: I do not like it

»
4 years ago, # |
  Vote: I like it +38 Vote: I do not like it

Reminder: The contest will start in an hour.

»
4 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

.

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +7 Vote: I do not like it

    Each submitted source program must be written only in C++

»
4 years ago, # |
  Vote: I like it +15 Vote: I do not like it

How to solve monster?

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +11 Vote: I do not like it

    Here is my solution, which use 12000 queries imo, but gets 100 points for some reason.

    The idea is to take any hamilton path with this trick. Then they can be partitioned into a subsegment where each can be rotated to form a valid order.

    • »
      »
      »
      4 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Do you know how to solve one of the others? I could only do updates in corssings and a cubic solution to financails..

    • »
      »
      »
      4 years ago, # ^ |
      Rev. 2   Vote: I like it +10 Vote: I do not like it

      I have no idea how similar my idea is to rama_pang's or ko_osaga's solution, but this is how I did it.

      Step 1
      Step 2
      Step 3
      Why does this pass?
      Edit: My code
  • »
    »
    4 years ago, # ^ |
    Rev. 3   Vote: I like it +19 Vote: I do not like it
    Step 1
    Step 2
    Step 3
    100 points

    I haven't submitted the 100 points solution, but it's correct for all permutations $$$N \leq 10$$$ in local testing.

    Edit: my solution.

    Edit 2: Just submitted in analysis mode, and it got 100 points.

»
4 years ago, # |
  Vote: I like it +8 Vote: I do not like it

Does anybody know how to solve crossing or financials? They sound easy (especially financials) but I was unable to solve them

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +8 Vote: I do not like it

    Idea for Crossings

    Step 1
    Step 2
    Step 3
    • »
      »
      »
      4 years ago, # ^ |
        Vote: I like it +8 Vote: I do not like it

      Thanks really! I think I was able to update fast with lazy propagations but there was a testcase that didn't pass for some reason, testcase 40 in subtask 2. For some reason it passed when I had an even base for hashing , but then of course many other testcases failed. I tried to prove that there weren't many strings that could be generated but failed. Thanks a lot again!

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +8 Vote: I do not like it

    My idea for financials

    spoiler
»
4 years ago, # |
  Vote: I like it +102 Vote: I do not like it

Problems were not bad, but I was disappointed because my expectation for JOI Open is very high. Financial is very standard, and Crossing is just... meh. Monster is ok and I liked solving it, but the limit seems unnecessarily tight.

»
4 years ago, # |
  Vote: I like it +15 Vote: I do not like it

You can solve all problems here: https://oj.uz/problems/source/574

»
4 years ago, # |
  Vote: I like it +19 Vote: I do not like it

Editorial for the problem Monster is.. very sketchy.

Though the maximum number of times we need to use the balance to sort a sequence by an algorithm based on comparison is 8 977, the actual number is usually much smaller. In particular, for the merge sort, it does not exceed 8 800 with high probability.

Therefore, we will probably get full score

Do you have proof? E869120

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +3 Vote: I do not like it

    I think this method can get under $$$10000 $$$ queries deterministically

    • »
      »
      »
      4 years ago, # ^ |
        Vote: I like it +3 Vote: I do not like it

      Yeah, I'm just talking about the model solution from the author.

      Also, I opened it's code, there were tons of ifs. I don't want to think it's intended.