QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#68557#5200. BinCoinlarryzhongWA 47ms3668kbC++171.5kb2022-12-17 11:43:472022-12-17 11:43:51

詳細信息

Test #1:

score: 100
Accepted
time: 2ms
memory: 3544kb

input:

3 50
1 2 3
1 2 3
3 2 1
1 2 3
3 2 1
1 2 3
1 2 3
1 2 3
1 2 3
3 2 1
1 2 3
3 2 1
1 2 3
3 2 1
1 2 3
3 2 1
1 2 3
1 2 3
3 2 1
1 2 3
3 2 1
1 2 3
3 2 1
1 2 3
1 2 3
3 2 1
1 2 3
1 2 3
1 2 3
1 2 3
3 2 1
1 2 3
3 2 1
3 2 1
1 2 3
3 2 1
1 2 3
3 2 1
3 2 1
1 2 3
1 2 3
3 2 1
1 2 3
3 2 1
3 2 1
3 2 1
1 2 3
1 2 3
3 2 1
3...

output:

2 -1 2 

result:

ok everything is fine

Test #2:

score: 0
Accepted
time: 2ms
memory: 3532kb

input:

5 60
2 4 3 5 1
1 5 2 4 3
1 5 2 4 3
1 5 2 4 3
1 5 3 4 2
1 5 3 4 2
1 5 3 4 2
1 5 3 4 2
1 5 3 4 2
3 4 2 5 1
2 4 3 5 1
1 5 2 4 3
3 4 2 5 1
2 4 3 5 1
2 4 3 5 1
1 5 2 4 3
3 4 2 5 1
3 4 2 5 1
1 5 2 4 3
2 4 3 5 1
1 5 2 4 3
1 5 3 4 2
3 4 2 5 1
1 5 3 4 2
1 5 2 4 3
1 5 3 4 2
1 5 2 4 3
2 4 3 5 1
2 4 3 5 1
2 4 3...

output:

5 4 4 5 -1 

result:

ok everything is fine

Test #3:

score: 0
Accepted
time: 2ms
memory: 3432kb

input:

11 73
11 1 7 8 5 6 10 3 9 4 2
5 6 10 8 7 1 11 3 9 4 2
9 3 11 1 7 8 5 6 10 4 2
2 4 11 1 7 8 5 6 10 3 9
9 3 7 1 11 8 10 6 5 4 2
2 4 10 6 5 8 7 1 11 3 9
9 3 7 1 11 8 5 6 10 4 2
11 1 7 8 10 6 5 3 9 4 2
9 3 10 6 5 8 7 1 11 4 2
2 4 5 6 10 8 11 1 7 3 9
2 4 11 1 7 8 10 6 5 3 9
2 4 10 6 5 8 11 1 7 3 9
9 3 10...

output:

8 4 4 -1 6 8 1 3 3 6 1 

result:

ok everything is fine

Test #4:

score: 0
Accepted
time: 3ms
memory: 3352kb

input:

21 81
9 18 14 13 3 4 7 10 2 21 15 16 5 19 20 12 11 1 17 8 6
14 13 7 4 3 10 2 18 9 21 20 12 6 8 11 1 17 19 15 16 5
2 10 14 13 3 4 7 18 9 21 17 1 11 8 6 12 20 19 5 16 15
2 10 7 4 3 13 14 18 9 21 15 16 5 19 6 8 17 1 11 12 20
15 16 5 19 6 8 17 1 11 12 20 21 9 18 7 4 3 13 14 10 2
5 16 15 19 11 1 17 8 6 1...

output:

8 10 4 13 16 8 4 12 18 18 1 19 10 13 16 19 1 21 21 12 -1 

result:

ok everything is fine

Test #5:

score: -100
Wrong Answer
time: 47ms
memory: 3668kb

input:

239 100
31 148 157 39 186 205 65 129 197 152 238 154 9 207 36 92 109 48 230 58 175 135 50 77 11 52 102 21 139 142 210 138 200 83 214 98 209 1 195 17 55 141 146 101 91 174 184 67 27 235 6 198 208 43 236 143 94 29 60 104 120 155 78 40 218 234 147 4 34 38 239 212 112 116 72 59 211 79 82 32 7 170 113 10...

output:

1 23 216 234 1 1 32 97 36 228 1 215 140 1 229 73 55 223 63 3 129 87 172 219 41 185 1 80 1 18 148 170 131 4 15 21 22 40 205 59 151 137 1 134 199 167 189 1 217 1 167 1 153 88 195 18 15 1 100 1 1 30 100 45 205 172 1 199 193 179 16 116 235 90 215 149 1 1 32 81 140 79 235 46 23 1 220 171 1 73 1 1 118 40 ...

result:

wrong answer isn't a tree