QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#61723#1807. Distribute the BarsAfterglowWA 3ms3504kbC++172.0kb2022-11-14 17:12:532022-11-14 17:12:56

詳細信息

Test #1:

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

input:

4

output:

2
2 3 5
2 1 7

result:

ok OK (2 groups)

Test #2:

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

input:

2

output:

-1

result:

ok OK (impossible)

Test #3:

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

input:

3

output:

-1

result:

ok OK (impossible)

Test #4:

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

input:

1659

output:

21
79 1 45 89 133 177 221 265 309 353 397 441 485 529 573 617 661 705 749 793 837 881 883 3317 925 3275 967 3233 1009 3191 1051 3149 1093 3107 1135 3065 1177 3023 1219 2981 1261 2939 1303 2897 1345 2855 1387 2813 1429 2771 1471 2729 1513 2687 1555 2645 1597 2603 1639 2561 1681 2519 1723 2477 1765 24...

result:

ok OK (21 groups)

Test #5:

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

input:

8941

output:

-1

result:

ok OK (impossible)

Test #6:

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

input:

458

output:

229
2 457 459
2 455 461
2 453 463
2 451 465
2 449 467
2 447 469
2 445 471
2 443 473
2 441 475
2 439 477
2 437 479
2 435 481
2 433 483
2 431 485
2 429 487
2 427 489
2 425 491
2 423 493
2 421 495
2 419 497
2 417 499
2 415 501
2 413 503
2 411 505
2 409 507
2 407 509
2 405 511
2 403 513
2 401 515
2 399 ...

result:

ok OK (229 groups)

Test #7:

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

input:

5

output:

-1

result:

ok OK (impossible)

Test #8:

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

input:

9

output:

3
3 1 9 17 
3 3 11 13 
3 5 7 15 

result:

ok OK (3 groups)

Test #9:

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

input:

25

output:

5
5 1 13 25 37 49 
5 3 15 27 39 41 
5 5 17 29 31 43 
5 7 19 21 33 45 
5 9 11 23 35 47 

result:

ok OK (5 groups)

Test #10:

score: -100
Wrong Answer
time: 1ms
memory: 3408kb

input:

143

output:

0
145 1 1 285 3 283 5 281 7 279 9 277 11 275 13 273 15 271 17 269 19 267 21 265 23 263 25 261 27 259 29 257 31 255 33 253 35 251 37 249 39 247 41 245 43 243 45 241 47 239 49 237 51 235 53 233 55 231 57 229 59 227 61 225 63 223 65 221 67 219 69 217 71 215 73 213 75 211 77 209 79 207 81 205 83 203 85 ...

result:

wrong answer M=0 is too small