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

Автор goluuuuu, история, 6 лет назад, По-английски

I am facing an error in solving the Question from SecondThread's gym on Tree basics. Since, I cannot view the testcases where my code is failing, I need some help. I also cannot see other's solution because you need >1900 rating. Can someone share their solution in C++ or point out the mistake in my code? I promise that the code is quite readable.

CODE:
  • Проголосовать: нравится
  • -19
  • Проголосовать: не нравится

»
6 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится +26 Проголосовать: не нравится

The question is, why are you posting these blogs from an alt karad?

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

Here is my solution https://ideone.com/pyik9v . Not the best code for binary lifting but it's accepted.