Vectors_Master's blog

By Vectors_Master, 30 hours ago, In English

We hope you enjoyed the problems! Thank you for participating in the contest! We would love to hear your feedback in the comments.

2071A - The Play Never Ends

Hints
Solution
Code

2071B - Perfecto

Hints
Solution
Code

2071C - Trapmigiano Reggiano

Hints
Solution
Code

2071D1 - Infinite Sequence (Easy Version)

Hints
Solution
Code

2071D2 - Infinite Sequence (Hard Version)

Hints
Solution
Code

2071E - LeaFall

Hints
Solution
Code

2071F - Towering Arrays

Hints
Solution
Code
  • Vote: I like it
  • +87
  • Vote: I do not like it

»
7 hours ago, # |
  Vote: I like it -20 Vote: I do not like it

first

  • »
    »
    7 hours ago, # ^ |
      Vote: I like it -8 Vote: I do not like it

    why you have -55 contribution

»
7 hours ago, # |
  Vote: I like it +14 Vote: I do not like it

very interesting problems!, thanks you all

»
7 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

Why is there no Hints on D???

»
7 hours ago, # |
  Vote: I like it +1 Vote: I do not like it

How to come up with solutions for problems like C ? I figured en to be the last one in the permutation but couldn't progress further.

  • »
    »
    7 hours ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    practice makes perfect

    • »
      »
      »
      6 hours ago, # ^ |
      Rev. 2   Vote: I like it +1 Vote: I do not like it

      Obv, can you tell how you came up with solution for C ?

      • »
        »
        »
        »
        6 hours ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        How do you write dfs? so in dfs you print root at before going to its childrens or after both are valid, since you thought en is last your brain needed to think how can i make en as last and make permuation which is ending at en so if you do a dfs from en that is your answer. so you are doing dfs and printing root at last and you wanted en to be last so en would be our root and since it is a tree path from st to en is always their.

      • »
        »
        »
        »
        5 hours ago, # ^ |
        Rev. 2   Vote: I like it 0 Vote: I do not like it

        I actually got the same solution as the editorial

        Basically, by past problem solving experiences, I tried rooting "en" because it was my target, so measuring how distant I am from it would be easier if it was the root because the distance will simply be the height of the current node

        Then it was trial and error, initially I though about climbing the tree and then take turns on each neighbor of the root, until after some time testing I realized that if I did this backwards (starting from the deepest level) would make it easy to predict my height

        Tbh the advice will always end up on "solve more problems" Like, rooting a node is a standard idea that you will see in many other tree problems, so at some point you expect this will help

      • »
        »
        »
        »
        26 minutes ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        Reverse dfs

»
7 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

What is the solution for D1?? is it standard typre problem??

»
6 hours ago, # |
  Vote: I like it +1 Vote: I do not like it

I am shocked to find out that the answer for C doesn't depend on st

  • »
    »
    6 hours ago, # ^ |
    Rev. 2   Vote: I like it +3 Vote: I do not like it

    Not all approaches, one may come up with some approach that really depends on st.

    Check my solution for example : 308367585

    • »
      »
      »
      6 hours ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      ye mine relies on st too. But the tutorial solution is really nice to know.

»
6 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

https://codeforces.net/contest/2071/submission/308387650 why is my approach getting wa at tc 2 can anyone tell me what am i missing?

  • »
    »
    3 hours ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Consider the tree 2<->1<->3<->4<->5 with st 3 and en 5. Your code would print it 1, 2, 3, 4, 5, since 1 and 2 are in rem and 3 4 5 are in ans1. The way the rat would move like 3 -> 2 -> 1 -> 2 -> 3 -> 4, failing to reach 5.

    The problem is that you are not printing the other nodes in order of their depth, but rather just the order of their number.

»
6 hours ago, # |
  Vote: I like it +14 Vote: I do not like it

what an amazing solution to C!

i had a completely different solution.

»
5 hours ago, # |
  Vote: I like it +7 Vote: I do not like it

Will be added soon(

»
5 hours ago, # |
  Vote: I like it +14 Vote: I do not like it

Love the problems thx guys (⁠。⁠♡⁠‿⁠♡⁠。⁠)

»
5 hours ago, # |
  Vote: I like it +8 Vote: I do not like it

C was excellent. Really excellent.

»
4 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

what happened to D editorial

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

Great round ! The problems were well-balanced and had interesting ideas. Really enjoyed solving them, especially 2071B - Perfecto.

Thanks to the Setters and Testers for the effort :)

»
105 minutes ago, # |
  Vote: I like it 0 Vote: I do not like it

During the contest, I read task C incorrectly, which made it seem very difficult to me and I decided to skip it. I thought the mouse could NOT pass through en earlier during the process. Now I'm wondering, if there's any elegant and easy solution for this task, because the solution I was able to come up with doesn't seem simple.

»
94 minutes ago, # |
  Vote: I like it 0 Vote: I do not like it

I think this round is harder than the Edu round 1006, but at least the problem is interesting. My friend encountered serveral corner cases which made him crazy!