QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#468255#1163. Another Tree Queries ProblemLYH_cppRE 1ms7464kbC++234.9kb2024-07-08 20:01:082024-07-08 20:01:09

详细

Test #1:

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

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
Runtime Error

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:

889
967
825
1948
2652
1710
3402
2921
5476
4540
4576
4298
6134
4426
6420
8534
5736
7857
8458
11168
7631
7260
10924
7165
14549
16270
10676
10748
10267
12308
19845
21734
18148
18152
11367
15273
14434
19268
14875
16563
23277
21185
26742
22205
14789
22489
13794
21676
15606
25787
22321
32514
22669
36224
1...

result: