QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#395897#6339. Cookiesahihi12340 78ms5612kbC++141.5kb2024-04-22 00:31:492024-04-22 00:31:50

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 6
Accepted
time: 0ms
memory: 3524kb

input:

1
1
1
1

output:

1
1 1

result:

ok good!

Test #2:

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

input:

2
1 1
1
1

output:

2
1 2
1 1

result:

ok good!

Test #3:

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

input:

2
1 1
1
2

output:

1
2 2 1

result:

ok good!

Test #4:

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

input:

2
1 1
2
1 2

output:

1
2 2 1

result:

ok good!

Test #5:

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

input:

4
1 1 1 1
2
2 3

output:

2
2 4 3
2 2 1

result:

ok good!

Test #6:

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

input:

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

output:

2
4 8 7 6 5
4 4 3 2 1

result:

ok good!

Test #7:

score: -6
Wrong Answer
time: 1ms
memory: 3828kb

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:

17
1 500
1 499
1 498
1 497
1 496
1 495
1 494
1 493
1 492
1 491
1 490
1 489
1 488
1 487
1 486
1 485
1 484

result:

wrong answer there are unused item 1

Subtask #2:

score: 0
Wrong Answer

Test #28:

score: 7
Accepted
time: 0ms
memory: 3764kb

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: 0ms
memory: 3620kb

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 1
1 1
1 1
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: 4ms
memory: 3848kb

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
1 1
1 1
1 1
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: 74ms
memory: 4648kb

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
1 1
1 1
1 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: 0ms
memory: 3528kb

input:

2
2 1
1
1

output:

3
1 1
1 2
1 1

result:

ok good!

Test #33:

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

input:

2
1 2
1
2

output:

-1

result:

ok no solution

Test #34:

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

input:

3
1 2 3
1
2

output:

3
2 3 2
2 3 2
2 3 1

result:

ok good!

Test #35:

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

input:

3
3 2 1
1
3

output:

-1

result:

ok no solution

Test #36:

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

input:

3
2 2 2
1
2

output:

3
2 3 2
2 1 3
2 2 1

result:

ok good!

Test #37:

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

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 11
10 1 2 3 4 5 6 7 8 10 9
10 1 2 3 4 5 6 7 8 11 10
10 1 2 3 4 5 6 7 9 8 11
10 1 2 3 4 5 6 7 10 9 8
10 1 2 3 4 5 6 7 11 10 9
10 1 2 3 4 5 6 8 7 11 10
10 1 2 3 4 5 6 9 8 7 11
10 1 2 3 4 5 6 10 9 8 7
10 1 2 3 4 5 6 11 10 9 8
10 1 2 3 4 5 7 6 11 10 9
10 1...

result:

ok good!

Test #38:

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

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: 78ms
memory: 4176kb

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
4 5 8 2 9
4 5 8 2 9
4 5 8...

result:

ok good!

Test #40:

score: -7
Wrong Answer
time: 76ms
memory: 5588kb

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:

242
3 238 92 383
3 238 92 383
3 238 251 92
3 238 383 251
3 238 92 383
3 238 251 92
3 238 383 251
3 238 211 92
3 238 383 251
3 238 211 92
3 238 383 251
3 238 211 92
3 238 383 251
3 238 211 102
3 238 92 383
3 238 251 211
3 238 102 92
3 238 383 251
3 238 211 102
3 238 92 383
3 238 251 211
3 238 102 92
...

result:

wrong answer there are unused item 1

Subtask #3:

score: 0
Wrong Answer

Test #45:

score: 12
Accepted
time: 0ms
memory: 3520kb

input:

2
7 8
2
1 2

output:

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

result:

ok good!

Test #46:

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

input:

3
5 4 6
2
2 3

output:

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

result:

ok good!

Test #47:

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

input:

3
4 2 9
3
1 2 3

output:

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

result:

ok good!

Test #48:

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

input:

4
3 5 4 3
2
3 4

output:

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

result:

ok good!

Test #49:

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

input:

4
1 4 5 5
3
1 3 4

output:

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

result:

ok good!

Test #50:

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

input:

4
3 3 6 3
3
2 3 4

output:

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

result:

ok good!

Test #51:

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

input:

5
4 3 3 3 1
3
2 4 5

output:

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

result:

ok good!

Test #52:

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

input:

5
4 3 3 3 2
3
3 4 5

output:

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

result:

ok good!

Test #53:

score: -12
Wrong Answer
time: 0ms
memory: 3760kb

input:

5
4 4 4 2 1
3
2 4 5

output:

-1

result:

wrong answer you didn't find a solution but jury did

Subtask #4:

score: 0
Skipped

Dependency #1:

0%

Subtask #5:

score: 0
Skipped

Dependency #4:

0%

Subtask #6:

score: 0
Skipped

Dependency #1:

0%