Help with the problem

Revision en1, by noob64678, 2026-03-20 23:01:08

Given a tree of n vertices (n <= 1e5) in which the edge is arbitrarily oriented. Also given q queries (q <= 1e5) in which a, b are entered. The problem is quickly answer whether there is a path from a to b.

Thank a lot for your help.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English noob64678 2026-03-20 23:01:08 257 Initial revision (published)