트리에서 두 원의 교점
Time Limit: 5 SecMemory Limit: 1024 MiB
Example Input 1
3
1 2
2 3
1
1 1 3 1
Example Output 1
YES
Example Input 2
14
2 5
1 2
5 4
3 2
1 6
6 7
7 8
8 9
7 10
10 11
10 12
2 13
2 14
6
11 4 4 1
5 6 7 2
12 6 3 3
10 0 1 3
4 0 4 0
8 3 2 5
Example Output 2
NO
YES
NO
YES
YES
YES
© 2023-2025. All rights reserved.
Powered by @Rn
logo