QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#510990#5418. Color the Treeucup-team1154WA 70ms13944kbC++173.7kb2024-08-09 14:58:132024-08-09 14:58:13

詳細信息

Test #1:

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

input:

3
4
10 15 40 1
1 2
2 3
2 4
5
10 5 1 100 1000
1 2
2 3
2 4
4 5
4
1000 200 10 8
1 2
2 3
3 4

output:

35
17
1218

result:

ok 3 number(s): "35 17 1218"

Test #2:

score: -100
Wrong Answer
time: 70ms
memory: 13944kb

input:

3000
54
43 44 11 49 17 14 7 30 35 12 34 14 15 8 29 47 30 31 39 17 26 23 26 45 34 50 49 13 35 18 29 15 13 44 47 5 22 20 19 46 30 22 26 13 47 46 43 27 48 48 13 14 30 44
1 2
1 3
2 4
3 5
4 6
2 7
4 8
1 9
3 10
1 11
8 12
2 13
9 14
1 15
1 16
15 17
15 18
7 19
1 20
19 21
13 22
10 23
17 24
9 25
9 26
24 27
8 28...

output:

175
83
209
179
154
167
241
102
61
78
141
65
148
95
213
94
174
194
129
97
134
125
60
221
192
222
127
184
74
156
82
269
60
272
150
140
168
156
129
97
91
136
223
113
160
162
141
73
140
59
56
39
105
106
186
63
90
211
53
123
143
77
150
136
280
72
93
266
80
383
144
49
90
148
211
179
67
190
70
188
96
71
99...

result:

wrong answer 1st numbers differ - expected: '180', found: '175'