A question on AtCoder Beginner Contest 220 E — Distance on Large Perfect Binary Tree

Правка en3, от yosako, 2021-10-28 18:48:43

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.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский yosako 2021-10-28 18:48:43 6 Tiny change: ' based on that.\n\n<spo' -> ' based on it.\n\n<spo'
en2 Английский yosako 2021-10-28 16:47:21 2986 (published)
en1 Английский yosako 2021-10-28 13:33:07 1738 Initial revision (saved to drafts)