Skip to content

Tree

UnratedFunction
English

Language

Contribute a translation
Time limit
2000 ms
Memory limit
2048 MB
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

Tree: original English statement, page 1

Tree: original English statement, page 2

Tree: original English statement, page 3

Tree: original English statement, page 4

Examples

Sample input 1
3
0 0
1 1 1
2
1 1
1 2
Sample output 1
3
2

Tags

No tags yet

Source

This problem accepts only these languages.

C++20