Help with the problem

Правка en1, от 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.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский noob64678 2026-03-20 23:01:08 257 Initial revision (published)