Pudding Monster but on a tree :))

Revision en1, by Sammmmmmm, 2024-08-06 12:13:19

Given a tree of n vertices, count the number of ways to choose a connected subgraph of the tree so that all the vertices in that

subgraph consists of consecutive integers when sorted. Thanks!

N <= 3e5

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Sammmmmmm 2024-08-06 12:13:19 240 Initial revision (published)