Path Queries

G. Path Queries time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output You are given a weighted tree consisting of nn vertices. Recall that a tre
相关文章
相关标签/搜索