QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#468400#1163. Another Tree Queries ProblemLYH_cppWA 71ms11484kbC++235.1kb2024-07-08 20:37:382024-07-08 20:37:38

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 7456kb

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: 71ms
memory: 11484kb

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
805
1730
2306
1338
3056
2359
4869
3937
4123
3685
5717
4297
6612
7639
4743
7986
7339
9995
7236
6059
11231
6908
13209
15164
9238
9312
8713
11144
18286
22114
16440
17305
10757
13782
12428
18243
12842
16995
23606
19620
24804
20211
13067
21901
11944
19831
13649
24481
19757
30013
20095
34141
16657...

result:

wrong answer 3rd numbers differ - expected: '813', found: '805'