QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#214025#6550. Elimination Raceucup-team1546#WA 313ms7404kbC++177.6kb2023-10-14 16:56:522023-10-14 16:56:53

詳細信息

Test #1:

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

input:

4
1 2 3 4
2 1 3 4
4 3 1 2

output:

Yes
3 2 1 
No
No
No

result:

ok n=4, yes=1, no=3

Test #2:

score: 0
Accepted
time: 0ms
memory: 3508kb

input:

3
2 1 3
2 1 3

output:

No
Yes
2 1 
No

result:

ok n=3, yes=1, no=2

Test #3:

score: 0
Accepted
time: 0ms
memory: 3468kb

input:

2
1 2

output:

Yes
1 
No

result:

ok n=2, yes=1, no=1

Test #4:

score: 0
Accepted
time: 0ms
memory: 3504kb

input:

2
2 1

output:

No
Yes
1 

result:

ok n=2, yes=1, no=1

Test #5:

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

input:

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

output:

Yes
5 8 2 9 10 7 6 1 4 3 
No
No
No
No
No
No
Yes
5 8 2 9 10 3 6 1 4 7 
Yes
1 8 2 9 10 7 6 4 3 5 
Yes
4 8 2 9 10 7 6 1 3 5 
No

result:

ok n=11, yes=4, no=7

Test #6:

score: 0
Accepted
time: 0ms
memory: 3560kb

input:

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

output:

Yes
1 10 5 9 8 7 4 6 2 3 
No
No
Yes
1 10 2 5 9 8 7 3 4 6 
No
No
Yes
1 10 5 3 8 7 4 6 9 2 
No
Yes
1 10 2 5 9 4 8 7 3 6 
No
No

result:

ok n=11, yes=4, no=7

Test #7:

score: 0
Accepted
time: 0ms
memory: 3492kb

input:

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

output:

Yes
10 9 4 7 8 3 2 5 6 1 
No
No
No
No
No
Yes
10 9 4 7 6 3 2 5 1 8 
No
No
No
No

result:

ok n=11, yes=2, no=9

Test #8:

score: 0
Accepted
time: 1ms
memory: 3472kb

input:

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

output:

Yes
3 8 10 9 4 6 5 2 1 7 
No
No
No
No
No
No
Yes
3 8 10 4 7 1 6 5 2 9 
Yes
3 8 10 9 4 7 6 5 1 2 
No
No

result:

ok n=11, yes=3, no=8

Test #9:

score: 0
Accepted
time: 1ms
memory: 3472kb

input:

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

output:

Yes
10 1 8 6 3 9 7 2 5 4 
No
No
No
No
No
Yes
4 5 8 6 3 9 10 7 2 1 
No
No
Yes
2 1 8 6 9 7 5 4 3 10 
Yes
10 1 8 6 9 7 5 4 3 2 

result:

ok n=11, yes=4, no=7

Test #10:

score: 0
Accepted
time: 1ms
memory: 3468kb

input:

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

output:

No
No
No
Yes
1 10 6 9 5 3 4 8 7 2 
No
Yes
2 1 10 8 9 5 7 4 6 3 
No
Yes
2 1 4 8 9 5 7 6 3 10 
No
No
No

result:

ok n=11, yes=3, no=8

Test #11:

score: 0
Accepted
time: 1ms
memory: 3528kb

input:

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

output:

Yes
1 2 3 8 9 6 10 7 5 4 
No
Yes
10 2 3 8 7 6 1 5 4 9 
Yes
6 2 3 4 9 10 8 7 5 1 
No
No
No
Yes
1 2 5 9 10 4 8 7 6 3 
Yes
1 2 3 8 9 6 10 7 4 5 
No
Yes
10 2 3 8 9 6 7 5 4 1 

result:

ok n=11, yes=6, no=5

Test #12:

score: 0
Accepted
time: 1ms
memory: 3528kb

input:

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

output:

Yes
9 2 3 5 8 7 10 6 1 4 
No
Yes
9 2 3 5 8 10 1 4 6 7 
Yes
9 2 3 5 8 6 10 1 4 7 
Yes
9 5 8 6 4 7 10 3 1 2 
No
No
No
No
No
No

result:

ok n=11, yes=4, no=7

Test #13:

score: 0
Accepted
time: 1ms
memory: 3492kb

input:

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

output:

Yes
8 6 9 10 5 3 7 1 2 4 
Yes
2 6 4 1 10 8 7 5 3 9 
Yes
2 6 9 10 5 3 4 7 1 8 
Yes
8 6 5 10 9 3 4 7 1 2 
No
Yes
8 6 9 10 5 3 4 7 2 1 
Yes
8 6 10 1 3 4 5 7 2 9 
No
No
No
No

result:

ok n=11, yes=6, no=5

Test #14:

score: 0
Accepted
time: 1ms
memory: 3500kb

input:

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

output:

Yes
10 7 3 9 1 6 2 8 4 5 
Yes
5 10 7 3 4 2 1 8 9 6 
Yes
5 6 7 3 1 8 4 10 9 2 
No
Yes
5 10 7 3 9 8 6 4 2 1 
No
Yes
5 10 7 3 9 8 1 4 6 2 
No
No
No
No

result:

ok n=11, yes=5, no=6

Test #15:

score: 0
Accepted
time: 304ms
memory: 7392kb

input:

500
446 156 267 294 482 398 430 13 311 318 474 426 140 484 83 387 257 136 69 305 295 283 287 55 52 65 322 249 43 56 331 443 226 214 341 182 389 464 84 477 187 40 327 411 248 10 223 165 379 293 12 9 5 230 309 367 2 397 265 59 361 118 196 316 390 213 194 167 483 452 114 345 263 219 87 94 160 224 200 2...

output:

Yes
239 347 213 318 157 407 422 477 366 493 134 499 305 417 392 220 471 356 440 443 310 122 184 146 368 128 492 283 456 453 103 335 496 327 265 216 326 483 463 468 389 233 249 303 319 341 494 476 386 447 166 285 80 415 457 209 324 448 307 461 316 247 182 299 388 210 287 405 480 418 382 193 445 414 2...

result:

ok n=500, yes=171, no=329

Test #16:

score: 0
Accepted
time: 313ms
memory: 7360kb

input:

500
18 271 51 335 212 326 93 264 408 66 230 181 456 149 259 396 269 443 136 446 250 409 240 457 319 289 402 334 247 216 106 214 468 448 58 186 137 225 337 487 281 333 130 275 169 420 100 71 57 284 63 454 108 375 164 437 133 110 440 350 479 370 276 211 193 148 198 222 496 460 308 85 286 242 257 435 4...

output:

Yes
284 376 455 453 303 342 273 291 372 337 482 425 107 429 256 444 407 481 403 235 485 312 490 224 328 382 345 495 150 346 226 373 369 296 384 293 368 300 280 297 408 366 308 419 146 320 219 388 335 225 442 276 167 400 459 475 451 178 170 221 119 201 448 454 486 367 215 355 309 405 229 422 172 487 ...

result:

ok n=500, yes=185, no=315

Test #17:

score: -100
Wrong Answer
time: 305ms
memory: 7404kb

input:

500
24 261 411 242 116 202 460 6 169 140 268 333 447 468 341 373 58 274 175 180 77 232 465 326 300 211 204 75 98 425 322 90 408 489 227 480 89 31 94 248 334 299 76 290 157 178 111 143 103 117 131 292 456 201 118 285 150 10 56 251 418 448 453 47 451 184 343 42 210 68 113 422 165 391 415 272 45 82 490...

output:

Yes
491 325 232 485 425 368 322 268 326 327 265 476 372 307 245 386 458 453 451 436 311 423 324 414 390 263 282 487 428 462 380 306 264 452 341 30 202 366 299 256 247 459 259 279 321 498 435 429 110 441 177 191 139 379 199 228 200 242 300 255 180 497 51 394 460 493 333 216 384 417 356 481 474 144 39...

result:

wrong answer Player was eliminated