The number of paths in a tree with length less than k

Revision en1, by MaksatNIS9, 2021-01-02 11:09:17

Hello Codeforces! How can I count the number of paths with length less than k in a tree? Please provide a solution without centroid decomposition. Thank you in advance!

Tags tree, number of paths

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
ru1 Russian MaksatNIS9 2021-01-02 11:10:08 192 Первая редакция перевода на Русский
en1 English MaksatNIS9 2021-01-02 11:09:17 221 Initial revision (published)