QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#469277#1163. Another Tree Queries ProblemHuangHanShengWA 150ms16968kbC++205.6kb2024-07-09 17:00:152024-07-09 17:00:15

詳細信息

Test #1:

score: 100
Accepted
time: 3ms
memory: 16968kb

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: 150ms
memory: 14972kb

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:

866
954
853
1839
2386
1418
3136
2495
4955
4045
4293
3937
5989
4767
6810
7723
4782
8293
7581
10059
7959
6222
11584
7360
13279
15255
9667
9373
8972
11632
18881
23005
16780
18219
11758
14922
12582
19221
12907
18991
25597
22277
26244
20953
15242
23814
14442
21011
14656
26577
20505
31582
21037
34678
1894...

result:

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