Please read the new rule regarding the restriction on the use of AI tools. ×

TREE INFECTION- Problem C- Codeforces Round #781 (Div. 2)

Revision en1, by snakeRing, 2022-04-10 16:35:19

My solution for TREE INFECTION fails on test case 20.

The solution involves calculating numer of children for each node and is very similar to the editorial. only difference is that I calculate the extra days required for each node while I process the node.

Would be great if someone could help me out.

Tags sorting, implementation, tree

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English snakeRing 2022-04-10 16:35:19 425 Initial revision (published)