Vectors_Master's blog

By Vectors_Master, 27 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
  • +72
  • Vote: I do not like it

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

first

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

    why you have -55 contribution

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

very interesting problems!, thanks you all

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

Why is there no Hints on D???

»
4 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.

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

    practice makes perfect

    • »
      »
      »
      3 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 ?

      • »
        »
        »
        »
        3 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.

      • »
        »
        »
        »
        2 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

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

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

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

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

  • »
    »
    3 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

    • »
      »
      »
      3 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.

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

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

»
2 hours ago, # |
  Vote: I like it +10 Vote: I do not like it

what an amazing solution to C!

i had a completely different solution.

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

Will be added soon(

»
106 minutes ago, # |
  Vote: I like it +8 Vote: I do not like it

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

»
106 minutes ago, # |
  Vote: I like it +5 Vote: I do not like it

C was excellent. Really excellent.

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

what happened to D editorial

»
46 minutes ago, # |
  Vote: I like it +2 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 :)