QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#512850#1163. Another Tree Queries ProblemHuangHanShengTL 0ms0kbC++111.7kb2024-08-10 16:04:312024-08-10 16:04:32

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Time Limit Exceeded

input:

5
4 2
2 5
1 5
1 3
5
2 2 4
3 4
2 1 5
2 5 5
3 2

output:


result: