QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#558425#1163. Another Tree Queries ProblemCreeper_lWA 175ms18152kbC++148.6kb2024-09-11 16:03:562024-09-11 16:03:57

详细

Test #1:

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

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: 175ms
memory: 18152kb

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:

536
732
-535
321
1390
1320
2252
-131
3775
1109
3791
3735
4539
4199
6172
5235
4128
7455
183
8101
6943
1984
10654
5966
11271
3901
9033
2327
8437
10061
3320
20638
13953
12484
9793
11019
12045
13550
11988
15461
21818
17672
23984
12665
11640
20026
11401
18320
12141
17810
16590
29114
17250
19330
13375
236...

result:

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