QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#557581#1163. Another Tree Queries ProblemCreeper_lWA 183ms17324kbC++147.6kb2024-09-11 10:21:372024-09-11 10:21:39

詳細信息

Test #1:

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

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: 183ms
memory: 17164kb

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:

-1034
858
-761
315
-320
1344
542
-95
2929
1467
4249
3957
5157
4975
5712
4537
3538
4677
1683
7247
7411
2194
6656
1344
10847
4245
-21869
2693
7818
-14872
1925
-13825
11838
-12805
-24048
-13824
11090
-11941
11065
-19210
-13638
-8962
-5053
9270
-13121
-16749
-13535
-7492
-12803
-13048
13846
299
14024
14...

result:

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