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

Автор Vectors_Master, 30 часов назад, По-английски

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
Разбор задач Codeforces Round 1007 (Div. 2)
  • Проголосовать: нравится
  • +86
  • Проголосовать: не нравится

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

first

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

    why you have -55 contribution

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

very interesting problems!, thanks you all

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

Why is there no Hints on D???

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

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 часов назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    practice makes perfect

    • »
      »
      »
      6 часов назад, # ^ |
      Rev. 2   Проголосовать: нравится +1 Проголосовать: не нравится

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

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

        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 часов назад, # ^ |
        Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

        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

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

        Reverse dfs

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

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

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

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

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

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

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

    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 часов назад, # |
  Проголосовать: нравится +14 Проголосовать: не нравится

what an amazing solution to C!

i had a completely different solution.

»
5 часов назад, # |
  Проголосовать: нравится +7 Проголосовать: не нравится

Will be added soon(

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

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

»
5 часов назад, # |
  Проголосовать: нравится +6 Проголосовать: не нравится

C was excellent. Really excellent.

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

what happened to D editorial

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

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 :)

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

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.

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

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!