Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Help in debugging Counting Paths from cses involves binary lifting.

Правка en1, от killua123, 2024-04-14 11:31:18

Hello everyone, I'm solving cses problemset. Facing difficulites in debuging Counting paths because i'm getting wrong answer for large test cases.

Here is the python code for the problem. Even thought it is giving tle answer itself is wrong https://cses.fi/paste/27a611d184807dfd897743/

and below is the c++ code https://cses.fi/paste/76b082b9448a13798977a8/

Can anyone point the mistake in the code i'm making or where could it be wrong.

Теги tree, debug

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский killua123 2024-04-14 11:31:18 518 Initial revision (published)