QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#561354#1163. Another Tree Queries ProblemCreeper_lWA 164ms18600kbC++149.7kb2024-09-12 22:00:082024-09-12 22:00:09

詳細信息

Test #1:

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

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: 164ms
memory: 18600kb

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
4809
3933
4123
3791
5819
4597
6798
7523
4562
8223
7393
9809
7647
6024
11526
7144
12979
15003
9349
9115
8437
11003
18280
22448
16139
17660
11063
14291
12045
18630
12368
17479
23902
20714
24792
20021
13962
22184
13163
19488
13321
25000
19336
30022
19846
33630
17483...

result:

wrong answer 15th numbers differ - expected: '6632', found: '6798'