QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#558476#1163. Another Tree Queries ProblemCreeper_lWA 184ms18600kbC++148.8kb2024-09-11 16:21:332024-09-11 16:21:33

详细

Test #1:

score: 100
Accepted
time: 3ms
memory: 18600kb

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:

1
5

result:

ok 2 number(s): "1 5"

Test #2:

score: -100
Wrong Answer
time: 184ms
memory: 14968kb

input:

200
171 114
50 183
28 68
67 152
139 125
67 55
50 98
106 71
46 42
157 165
42 49
113 12
81 145
105 13
38 96
34 156
24 17
21 191
135 54
174 116
177 157
123 71
95 130
135 193
150 129
25 190
96 93
188 173
90 160
86 187
20 132
199 75
59 195
189 24
40 68
163 83
25 13
73 33
59 50
154 19
146 21
151 67
89 69
...

output:

826
908
813
1785
2288
1320
3038
2403
4797
3931
3797
3735
5569
4205
6178
7511
4562
7467
7385
9797
6959
6024
10666
6176
12967
14917
9229
9113
8437
10195
18256
20668
16109
16766
9823
13389
12045
17704
12368
15515
21890
19944
24620
20021
13176
20336
12391
18470
12201
23636
19318
29828
19846
33434
16519
...

result:

wrong answer 9th numbers differ - expected: '4809', found: '4797'