QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#513143#1163. Another Tree Queries ProblemZhangYiDeWA 193ms18340kbC++147.0kb2024-08-10 17:03:182024-08-10 17:03:19

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 18340kb

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: 193ms
memory: 18340kb

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:

814
900
737
1749
2252
1320
3002
2395
4809
3913
4083
3791
5751
4573
6690
7495
4562
8071
7365
9773
7603
6004
11334
7080
12943
14883
9325
9091
8437
10983
18232
22288
16091
16920
11027
14239
12045
18486
12368
17379
23802
20702
24720
19985
13954
22096
13155
19488
13297
24958
19316
29938
19846
33486
17443...

result:

wrong answer 1st numbers differ - expected: '826', found: '814'