QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#296452#6339. Cookieshyforces7 76ms884752kbC++202.8kb2024-01-03 03:28:242024-01-03 03:28:25

詳細信息

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 6
Accepted
time: 27ms
memory: 884548kb

input:

1
1
1
1

output:

1
1 1 

result:

ok good!

Test #2:

score: 0
Accepted
time: 28ms
memory: 884364kb

input:

2
1 1
1
1

output:

2
1 1 
1 2 

result:

ok good!

Test #3:

score: 0
Accepted
time: 27ms
memory: 884392kb

input:

2
1 1
1
2

output:

1
2 1 2 

result:

ok good!

Test #4:

score: 0
Accepted
time: 28ms
memory: 884600kb

input:

2
1 1
2
1 2

output:

1
2 1 2 

result:

ok good!

Test #5:

score: 0
Accepted
time: 51ms
memory: 884332kb

input:

4
1 1 1 1
2
2 3

output:

2
2 1 2 
2 3 4 

result:

ok good!

Test #6:

score: 0
Accepted
time: 43ms
memory: 884344kb

input:

8
1 1 1 1 1 1 1 1
3
1 4 5

output:

2
4 1 2 3 4 
4 5 6 7 8 

result:

ok good!

Test #7:

score: 0
Accepted
time: 44ms
memory: 884436kb

input:

500
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

output:

500
1 1 
1 2 
1 3 
1 4 
1 5 
1 6 
1 7 
1 8 
1 9 
1 10 
1 11 
1 12 
1 13 
1 14 
1 15 
1 16 
1 17 
1 18 
1 19 
1 20 
1 21 
1 22 
1 23 
1 24 
1 25 
1 26 
1 27 
1 28 
1 29 
1 30 
1 31 
1 32 
1 33 
1 34 
1 35 
1 36 
1 37 
1 38 
1 39 
1 40 
1 41 
1 42 
1 43 
1 44 
1 45 
1 46 
1 47 
1 48 
1 49 
1 50 
1 51 ...

result:

ok good!

Test #8:

score: 0
Accepted
time: 47ms
memory: 884552kb

input:

500
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

output:

1
500 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 10...

result:

ok good!

Test #9:

score: -6
Wrong Answer
time: 48ms
memory: 884484kb

input:

500
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

output:

250
2 1 2 
2 3 4 
2 5 6 
2 7 8 
2 9 10 
2 11 12 
2 13 14 
2 15 16 
2 17 18 
2 19 20 
2 21 22 
2 23 24 
2 25 26 
2 27 28 
2 29 30 
2 31 32 
2 33 34 
2 35 36 
2 37 38 
2 39 40 
2 41 42 
2 43 44 
2 45 46 
2 47 48 
2 49 50 
2 51 52 
2 53 54 
2 55 56 
2 57 58 
2 59 60 
2 61 62 
2 63 64 
2 65 66 
2 67 68 ...

result:

wrong answer you used more buckets than jury

Subtask #2:

score: 7
Accepted

Test #28:

score: 7
Accepted
time: 28ms
memory: 884700kb

input:

1
15
1
1

output:

15
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 

result:

ok good!

Test #29:

score: 0
Accepted
time: 39ms
memory: 884408kb

input:

1
500
1
1

output:

500
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1...

result:

ok good!

Test #30:

score: 0
Accepted
time: 32ms
memory: 884444kb

input:

1
3000
1
1

output:

3000
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
...

result:

ok good!

Test #31:

score: 0
Accepted
time: 64ms
memory: 884656kb

input:

1
15000
1
1

output:

15000
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 
1 1 ...

result:

ok good!

Test #32:

score: 0
Accepted
time: 35ms
memory: 884684kb

input:

2
2 1
1
1

output:

3
1 1 
1 1 
1 2 

result:

ok good!

Test #33:

score: 0
Accepted
time: 23ms
memory: 884512kb

input:

2
1 2
1
2

output:

-1

result:

ok no solution

Test #34:

score: 0
Accepted
time: 31ms
memory: 884692kb

input:

3
1 2 3
1
2

output:

3
2 3 2 
2 3 1 
2 2 3 

result:

ok good!

Test #35:

score: 0
Accepted
time: 23ms
memory: 884360kb

input:

3
3 2 1
1
3

output:

-1

result:

ok no solution

Test #36:

score: 0
Accepted
time: 31ms
memory: 884356kb

input:

3
2 2 2
1
2

output:

3
2 1 2 
2 3 1 
2 2 3 

result:

ok good!

Test #37:

score: 0
Accepted
time: 44ms
memory: 884720kb

input:

15
50 49 48 47 46 45 44 43 42 41 40 2 1 1 1
1
10

output:

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

result:

ok good!

Test #38:

score: 0
Accepted
time: 76ms
memory: 884464kb

input:

15
51 49 48 47 46 45 44 43 42 41 40 1 1 1 1
1
10

output:

-1

result:

ok no solution

Test #39:

score: 0
Accepted
time: 27ms
memory: 884416kb

input:

10
430 3078 390 349 3750 906 377 3374 1795 551
1
4

output:

3750
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9 
4 5 8 2 9...

result:

ok good!

Test #40:

score: 0
Accepted
time: 39ms
memory: 884396kb

input:

500
4 99 56 16 7 39 5 8 3 18 15 30 19 27 46 47 24 55 1 7 21 1 13 5 53 32 12 98 12 121 3 118 25 15 8 32 29 7 13 3 29 94 22 4 12 37 15 52 14 9 59 22 3 16 9 77 5 17 41 22 16 6 3 32 33 34 18 1 28 4 72 4 3 40 21 13 22 16 42 77 2 16 1 1 10 11 3 34 21 28 4 173 24 57 17 9 20 116 21 72 17 165 28 30 6 13 86 1...

output:

5000
3 238 92 383 
3 238 92 251 
3 238 92 383 
3 238 92 251 
3 238 383 92 
3 238 251 383 
3 238 92 211 
3 238 251 383 
3 238 92 211 
3 238 251 383 
3 238 92 211 
3 238 251 383 
3 238 92 102 
3 238 211 251 
3 238 383 92 
3 238 102 211 
3 238 251 383 
3 238 92 102 
3 238 211 251 
3 238 383 92 
3 238 1...

result:

ok good!

Test #41:

score: 0
Accepted
time: 28ms
memory: 884412kb

input:

500
30 23 12 48 4 11 119 12 15 24 33 9 22 46 42 7 18 49 9 1 43 3 4 43 31 11 4 7 33 30 13 5 36 3 20 2 40 37 7 1 8 43 34 12 2 37 99 38 59 36 24 18 68 23 9 24 33 1 13 10 12 2 7 7 1 5 73 7 7 32 2 13 7 49 41 20 160 69 11 61 25 35 15 22 32 66 47 45 34 14 12 7 9 43 4 42 2 24 29 16 11 6 5 5 8 11 42 3 48 20 ...

output:

200
75 496 284 77 297 336 316 7 470 435 489 195 447 319 196 264 265 47 335 389 197 200 449 434 366 233 131 144 401 223 446 238 484 397 474 303 383 433 67 115 391 114 236 305 355 398 78 368 442 53 116 163 404 443 86 226 364 458 493 497 127 327 467 267 388 80 465 126 175 49 209 274 381 407 121 298 
75...

result:

ok good!

Test #42:

score: 0
Accepted
time: 24ms
memory: 884752kb

input:

500
6 60 24 11 17 58 8 42 30 60 38 34 54 23 5 12 32 6 35 11 60 42 35 60 25 60 37 40 5 22 24 26 17 17 60 21 7 29 13 7 56 12 8 16 8 20 11 60 12 60 32 56 30 55 12 23 26 60 60 6 18 60 60 21 21 16 28 23 60 9 16 4 8 5 20 4 60 59 39 20 8 27 8 7 6 8 10 30 18 15 60 60 41 48 17 24 17 60 10 42 6 13 22 21 14 18...

output:

60
250 2 10 21 24 26 35 48 50 58 59 62 63 69 77 91 92 98 108 128 129 131 137 139 144 146 147 159 170 178 180 187 196 197 200 213 223 226 234 241 242 246 248 253 272 273 280 283 289 290 292 302 306 314 321 325 329 330 339 342 353 359 363 383 388 396 400 418 420 421 425 426 439 446 450 452 455 460 466...

result:

ok good!

Test #43:

score: 0
Accepted
time: 31ms
memory: 884428kb

input:

122
121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 121 ...

output:

122
121 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...

result:

ok good!

Test #44:

score: 0
Accepted
time: 32ms
memory: 884496kb

input:

498
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...

output:

3
332 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 10...

result:

ok good!

Subtask #3:

score: 0
Wrong Answer

Test #45:

score: 12
Accepted
time: 36ms
memory: 884544kb

input:

2
7 8
2
1 2

output:

8
1 2 
2 1 2 
2 1 2 
2 1 2 
2 1 2 
2 1 2 
2 1 2 
2 1 2 

result:

ok good!

Test #46:

score: 0
Accepted
time: 24ms
memory: 884240kb

input:

3
5 4 6
2
2 3

output:

6
2 3 1 
2 3 1 
2 2 3 
3 1 2 3 
3 1 2 3 
3 1 2 3 

result:

ok good!

Test #47:

score: 0
Accepted
time: 51ms
memory: 884372kb

input:

3
4 2 9
3
1 2 3

output:

9
1 3 
1 3 
1 3 
1 3 
1 3 
2 1 3 
2 1 3 
3 1 2 3 
3 1 2 3 

result:

ok good!

Test #48:

score: 0
Accepted
time: 40ms
memory: 884528kb

input:

4
3 5 4 3
2
3 4

output:

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

result:

ok good!

Test #49:

score: 0
Accepted
time: 51ms
memory: 884392kb

input:

4
1 4 5 5
3
1 3 4

output:

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

result:

ok good!

Test #50:

score: 0
Accepted
time: 40ms
memory: 884604kb

input:

4
3 3 6 3
3
2 3 4

output:

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

result:

ok good!

Test #51:

score: 0
Accepted
time: 63ms
memory: 884512kb

input:

5
4 3 3 3 1
3
2 4 5

output:

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

result:

ok good!

Test #52:

score: 0
Accepted
time: 35ms
memory: 884348kb

input:

5
4 3 3 3 2
3
3 4 5

output:

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

result:

ok good!

Test #53:

score: 0
Accepted
time: 55ms
memory: 884548kb

input:

5
4 4 4 2 1
3
2 4 5

output:

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

result:

ok good!

Test #54:

score: -12
Wrong Answer
time: 72ms
memory: 884656kb

input:

5
3 3 3 3 3
3
1 2 4

output:

8
1 1 
2 2 3 
2 4 5 
2 1 2 
2 3 4 
2 5 1 
2 2 3 
2 4 5 

result:

wrong answer you used more buckets than jury

Subtask #4:

score: 0
Skipped

Dependency #1:

0%

Subtask #5:

score: 0
Skipped

Dependency #4:

0%

Subtask #6:

score: 0
Skipped

Dependency #1:

0%