NemoHolmes's blog

By NemoHolmes, history, 5 weeks ago, In English

Today is a nice day to do some virtual contest so I thought I would start with doing some AtCoder's beginner round. And I was doing just fine until I crashed into problem E — Distance on Large Perfect Binary Tree. So I read the tutorial and the explanation was ... exactly what I have in mind while doing that contest, so I think there must be something wrong with my code but I couldn't spot it no matter how hard I tried. Can you guys help me ? Here it the editorial and what I did was based on it.

My code (WA on sample test 2)

Help pls, I already used a lot of time to debug this problem but couldn't fix it.

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it