QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#79867#3482. Color CodesrepomanAC ✓57ms10744kbPython21.5kb2023-02-21 01:50:422023-02-21 01:50:45

详细

Test #1:

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

input:

6 1
6

output:

impossible

result:

ok 

Test #2:

score: 0
Accepted
time: 4ms
memory: 6704kb

input:

3 1
1

output:

000
001
011
010
110
111
101
100

result:

ok 

Test #3:

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

input:

4 2
3 2

output:

0000
1101
0011
1110
0101
1000
0110
1011
1100
0001
1111
0010
1001
0100
1010
0111

result:

ok 

Test #4:

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

input:

16 9
2 4 6 8 10 12 14 16 13

output:

0000000000000000
1111111111110001
0000000000000011
1111111111110010
0000000000000110
1111111111110111
0000000000000101
1111111111110100
0000000000001100
1111111111111101
0000000000001111
1111111111111110
0000000000001010
1111111111111011
0000000000001001
1111111111111000
0000000000011011
11111111111...

result:

ok 

Test #5:

score: 0
Accepted
time: 53ms
memory: 10528kb

input:

16 1
15

output:

0000000000000000
1111111111111101
0000000000000011
1111111111111110
0000000000000101
1111111111111000
0000000000000110
1111111111111011
0000000000001100
1111111111110001
0000000000001111
1111111111110010
0000000000001001
1111111111110100
0000000000001010
1111111111110111
0000000000011000
11111111111...

result:

ok 

Test #6:

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

input:

16 1
7

output:

0000000000000000
1111110000000001
0000000000000011
1111110000000010
0000000000000110
1111110000000111
0000000000000101
1111110000000100
0000000000001100
1111110000001101
0000000000001111
1111110000001110
0000000000001010
1111110000001011
0000000000001001
1111110000001000
0000000000011000
11111100000...

result:

ok 

Test #7:

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

input:

16 16
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

output:

0000000000000000
0000000000000001
0000000000000011
0000000000000010
0000000000000110
0000000000000111
0000000000000101
0000000000000100
0000000000001100
0000000000001101
0000000000001111
0000000000001110
0000000000001010
0000000000001011
0000000000001001
0000000000001000
0000000000011000
00000000000...

result:

ok 

Test #8:

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

input:

16 8
2 4 6 8 10 12 14 16

output:

impossible

result:

ok 

Test #9:

score: 0
Accepted
time: 37ms
memory: 10412kb

input:

16 4
15 16 13 2

output:

0000000000000000
1111111111110001
0000000000000011
1111111111110010
0000000000000110
1111111111110111
0000000000000101
1111111111110100
0000000000001100
1111111111111101
0000000000001111
1111111111111110
0000000000001010
1111111111111011
0000000000001001
1111111111111000
0000000000011011
11111111111...

result:

ok 

Test #10:

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

input:

15 2
10 15

output:

000000000000000
111111111000001
000000000000011
111111111000010
000000000000110
111111111000111
000000000000101
111111111000100
000000000001100
111111111001101
000000000001111
111111111001110
000000000001010
111111111001011
000000000001001
111111111001000
000000000011000
111111111011001
000000000011...

result:

ok 

Test #11:

score: 0
Accepted
time: 13ms
memory: 8620kb

input:

15 1
13

output:

000000000000000
111111111111001
000000000000011
111111111111010
000000000000110
111111111111111
000000000000101
111111111111100
000000000001111
111111111110110
000000000001100
111111111110101
000000000001001
111111111110000
000000000001010
111111111110011
000000000011000
111111111100001
000000000011...

result:

ok 

Test #12:

score: 0
Accepted
time: 5ms
memory: 6768kb

input:

15 7
2 4 6 8 10 12 14

output:

impossible

result:

ok 

Test #13:

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

input:

15 1
15

output:

impossible

result:

ok 

Test #14:

score: 0
Accepted
time: 16ms
memory: 8492kb

input:

15 4
9 6 7 2

output:

000000000000000
111111110000001
000000000000011
111111110000010
000000000000110
111111110000111
000000000000101
111111110000100
000000000001100
111111110001101
000000000001111
111111110001110
000000000001010
111111110001011
000000000001001
111111110001000
000000000011000
111111110011001
000000000011...

result:

ok 

Test #15:

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

input:

1 1
1

output:

0
1

result:

ok 

Test #16:

score: 0
Accepted
time: 13ms
memory: 6728kb

input:

2 1
1

output:

00
01
11
10

result:

ok 

Test #17:

score: 0
Accepted
time: 8ms
memory: 6636kb

input:

2 1
2

output:

impossible

result:

ok 

Test #18:

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

input:

3 1
2

output:

impossible

result:

ok 

Test #19:

score: 0
Accepted
time: 20ms
memory: 6712kb

input:

3 1
3

output:

impossible

result:

ok 

Test #20:

score: 0
Accepted
time: 9ms
memory: 6776kb

input:

3 2
2 3

output:

000
101
011
110
001
100
010
111

result:

ok 

Test #21:

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

input:

4 2
2 4

output:

impossible

result:

ok 

Test #22:

score: 0
Accepted
time: 9ms
memory: 6752kb

input:

4 1
3

output:

0000
1101
0011
1110
0101
1000
0110
1011
1100
0001
1111
0010
1001
0100
1010
0111

result:

ok 

Test #23:

score: 0
Accepted
time: 17ms
memory: 6604kb

input:

5 2
2 4

output:

impossible

result:

ok 

Test #24:

score: 0
Accepted
time: 8ms
memory: 6828kb

input:

5 1
1

output:

00000
00001
00011
00010
00110
00111
00101
00100
01100
01101
01111
01110
01010
01011
01001
01000
11000
11001
11011
11010
11110
11111
11101
11100
10100
10101
10111
10110
10010
10011
10001
10000

result:

ok 

Test #25:

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

input:

5 2
3 1

output:

00000
00001
00011
00010
00110
00111
00101
00100
01100
01101
01111
01110
01010
01011
01001
01000
11000
11001
11011
11010
11110
11111
11101
11100
10100
10101
10111
10110
10010
10011
10001
10000

result:

ok 

Test #26:

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

input:

5 3
1 5 3

output:

00000
00001
00011
00010
00110
00111
00101
00100
01100
01101
01111
01110
01010
01011
01001
01000
11000
11001
11011
11010
11110
11111
11101
11100
10100
10101
10111
10110
10010
10011
10001
10000

result:

ok 

Test #27:

score: 0
Accepted
time: 11ms
memory: 6932kb

input:

5 2
3 5

output:

00000
11001
00011
11010
00110
11111
00101
11100
01111
10110
01100
10101
01001
10000
01010
10011
11000
00001
11011
00010
11110
00111
11101
00100
10111
01110
10100
01101
10001
01000
10010
01011

result:

ok 

Test #28:

score: 0
Accepted
time: 11ms
memory: 6760kb

input:

6 2
2 4

output:

impossible

result:

ok 

Test #29:

score: 0
Accepted
time: 22ms
memory: 6764kb

input:

6 1
5

output:

000000
111101
000011
111110
000101
111000
000110
111011
001100
110001
001111
110010
001001
110100
001010
110111
011000
100101
011011
100110
011101
100000
011110
100011
010100
101001
010111
101010
010001
101100
010010
101111
110000
001101
110011
001110
110101
001000
110110
001011
111100
000001
111111...

result:

ok 

Test #30:

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

input:

6 2
3 1

output:

000000
000001
000011
000010
000110
000111
000101
000100
001100
001101
001111
001110
001010
001011
001001
001000
011000
011001
011011
011010
011110
011111
011101
011100
010100
010101
010111
010110
010010
010011
010001
010000
110000
110001
110011
110010
110110
110111
110101
110100
111100
111101
111111...

result:

ok 

Test #31:

score: 0
Accepted
time: 10ms
memory: 6832kb

input:

6 5
4 6 3 5 1

output:

000000
000001
000011
000010
000110
000111
000101
000100
001100
001101
001111
001110
001010
001011
001001
001000
011000
011001
011011
011010
011110
011111
011101
011100
010100
010101
010111
010110
010010
010011
010001
010000
110000
110001
110011
110010
110110
110111
110101
110100
111100
111101
111111...

result:

ok 

Test #32:

score: 0
Accepted
time: 8ms
memory: 6764kb

input:

6 3
5 2 3

output:

000000
110001
000011
110010
000110
110111
000101
110100
001100
111101
001111
111110
001010
111011
001001
111000
011011
101010
011000
101001
011101
101100
011110
101111
010111
100110
010100
100101
010001
100000
010010
100011
110000
000001
110011
000010
110110
000111
110101
000100
111100
001101
111111...

result:

ok 

Test #33:

score: 0
Accepted
time: 16ms
memory: 6644kb

input:

7 3
2 4 6

output:

impossible

result:

ok 

Test #34:

score: 0
Accepted
time: 15ms
memory: 6704kb

input:

7 1
5

output:

0000000
1111001
0000011
1111010
0000110
1111111
0000101
1111100
0001111
1110110
0001100
1110101
0001001
1110000
0001010
1110011
0011000
1100001
0011011
1100010
0011110
1100111
0011101
1100100
0010111
1101110
0010100
1101101
0010001
1101000
0010010
1101011
0100100
1011101
0100111
1011110
0100010
1011...

result:

ok 

Test #35:

score: 0
Accepted
time: 9ms
memory: 6828kb

input:

7 2
3 1

output:

0000000
0000001
0000011
0000010
0000110
0000111
0000101
0000100
0001100
0001101
0001111
0001110
0001010
0001011
0001001
0001000
0011000
0011001
0011011
0011010
0011110
0011111
0011101
0011100
0010100
0010101
0010111
0010110
0010010
0010011
0010001
0010000
0110000
0110001
0110011
0110010
0110110
0110...

result:

ok 

Test #36:

score: 0
Accepted
time: 4ms
memory: 6900kb

input:

7 4
6 4 3 5

output:

0000000
1100001
0000011
1100010
0000110
1100111
0000101
1100100
0001100
1101101
0001111
1101110
0001010
1101011
0001001
1101000
0011000
1111001
0011011
1111010
0011110
1111111
0011101
1111100
0010100
1110101
0010111
1110110
0010010
1110011
0010001
1110000
0110011
1010010
0110000
1010001
0110101
1010...

result:

ok 

Test #37:

score: 0
Accepted
time: 16ms
memory: 6740kb

input:

7 3
2 7 6

output:

0000000
1000001
0000011
1000010
0000110
1000111
0000101
1000100
0001100
1001101
0001111
1001110
0001010
1001011
0001001
1001000
0011000
1011001
0011011
1011010
0011110
1011111
0011101
1011100
0010100
1010101
0010111
1010110
0010010
1010011
0010001
1010000
0110000
1110001
0110011
1110010
0110110
1110...

result:

ok 

Test #38:

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

input:

8 3
2 4 6

output:

impossible

result:

ok 

Test #39:

score: 0
Accepted
time: 8ms
memory: 6840kb

input:

8 1
7

output:

00000000
11111101
00000011
11111110
00000101
11111000
00000110
11111011
00001100
11110001
00001111
11110010
00001001
11110100
00001010
11110111
00011000
11100101
00011011
11100110
00011101
11100000
00011110
11100011
00010100
11101001
00010111
11101010
00010001
11101100
00010010
11101111
00110000
110...

result:

ok 

Test #40:

score: 0
Accepted
time: 8ms
memory: 6868kb

input:

8 2
2 1

output:

00000000
00000001
00000011
00000010
00000110
00000111
00000101
00000100
00001100
00001101
00001111
00001110
00001010
00001011
00001001
00001000
00011000
00011001
00011011
00011010
00011110
00011111
00011101
00011100
00010100
00010101
00010111
00010110
00010010
00010011
00010001
00010000
00110000
001...

result:

ok 

Test #41:

score: 0
Accepted
time: 8ms
memory: 6868kb

input:

8 1
1

output:

00000000
00000001
00000011
00000010
00000110
00000111
00000101
00000100
00001100
00001101
00001111
00001110
00001010
00001011
00001001
00001000
00011000
00011001
00011011
00011010
00011110
00011111
00011101
00011100
00010100
00010101
00010111
00010110
00010010
00010011
00010001
00010000
00110000
001...

result:

ok 

Test #42:

score: 0
Accepted
time: 8ms
memory: 6768kb

input:

8 4
3 5 7 2

output:

00000000
11000001
00000011
11000010
00000110
11000111
00000101
11000100
00001100
11001101
00001111
11001110
00001010
11001011
00001001
11001000
00011000
11011001
00011011
11011010
00011110
11011111
00011101
11011100
00010100
11010101
00010111
11010110
00010010
11010011
00010001
11010000
00110000
111...

result:

ok 

Test #43:

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

input:

9 4
2 4 6 8

output:

impossible

result:

ok 

Test #44:

score: 0
Accepted
time: 5ms
memory: 6676kb

input:

9 1
4

output:

impossible

result:

ok 

Test #45:

score: 0
Accepted
time: 16ms
memory: 6856kb

input:

9 2
3 9

output:

000000000
110000001
000000011
110000010
000000110
110000111
000000101
110000100
000001100
110001101
000001111
110001110
000001010
110001011
000001001
110001000
000011000
110011001
000011011
110011010
000011110
110011111
000011101
110011100
000010100
110010101
000010111
110010110
000010010
110010011
...

result:

ok 

Test #46:

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

input:

9 7
5 3 1 9 4 6 7

output:

000000000
000000001
000000011
000000010
000000110
000000111
000000101
000000100
000001100
000001101
000001111
000001110
000001010
000001011
000001001
000001000
000011000
000011001
000011011
000011010
000011110
000011111
000011101
000011100
000010100
000010101
000010111
000010110
000010010
000010011
...

result:

ok 

Test #47:

score: 0
Accepted
time: 4ms
memory: 6884kb

input:

9 4
5 8 9 6

output:

000000000
111111101
000000011
111111110
000000101
111111000
000000110
111111011
000001100
111110001
000001111
111110010
000001001
111110100
000001010
111110111
000011000
111100101
000011011
111100110
000011101
111100000
000011110
111100011
000010100
111101001
000010111
111101010
000010001
111101100
...

result:

ok 

Test #48:

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

input:

10 4
2 4 6 8

output:

impossible

result:

ok 

Test #49:

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

input:

10 1
2

output:

impossible

result:

ok 

Test #50:

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

input:

10 2
10 1

output:

0000000000
0000000001
0000000011
0000000010
0000000110
0000000111
0000000101
0000000100
0000001100
0000001101
0000001111
0000001110
0000001010
0000001011
0000001001
0000001000
0000011000
0000011001
0000011011
0000011010
0000011110
0000011111
0000011101
0000011100
0000010100
0000010101
0000010111
000...

result:

ok 

Test #51:

score: 0
Accepted
time: 11ms
memory: 6764kb

input:

10 5
1 8 6 7 5

output:

0000000000
0000000001
0000000011
0000000010
0000000110
0000000111
0000000101
0000000100
0000001100
0000001101
0000001111
0000001110
0000001010
0000001011
0000001001
0000001000
0000011000
0000011001
0000011011
0000011010
0000011110
0000011111
0000011101
0000011100
0000010100
0000010101
0000010111
000...

result:

ok 

Test #52:

score: 0
Accepted
time: 20ms
memory: 6652kb

input:

10 5
10 5 8 6 3

output:

0000000000
1100000001
0000000011
1100000010
0000000110
1100000111
0000000101
1100000100
0000001100
1100001101
0000001111
1100001110
0000001010
1100001011
0000001001
1100001000
0000011000
1100011001
0000011011
1100011010
0000011110
1100011111
0000011101
1100011100
0000010100
1100010101
0000010111
110...

result:

ok 

Test #53:

score: 0
Accepted
time: 13ms
memory: 6720kb

input:

11 5
2 4 6 8 10

output:

impossible

result:

ok 

Test #54:

score: 0
Accepted
time: 5ms
memory: 6652kb

input:

11 1
11

output:

impossible

result:

ok 

Test #55:

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

input:

11 2
5 2

output:

00000000000
11110000001
00000000011
11110000010
00000000110
11110000111
00000000101
11110000100
00000001100
11110001101
00000001111
11110001110
00000001010
11110001011
00000001001
11110001000
00000011000
11110011001
00000011011
11110011010
00000011110
11110011111
00000011101
11110011100
00000010100
...

result:

ok 

Test #56:

score: 0
Accepted
time: 16ms
memory: 6652kb

input:

11 1
6

output:

impossible

result:

ok 

Test #57:

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

input:

11 5
3 10 9 2 1

output:

00000000000
11111111001
00000000011
11111111010
00000000110
11111111111
00000000101
11111111100
00000001111
11111110110
00000001100
11111110101
00000001001
11111110000
00000001010
11111110011
00000011000
11111100001
00000011011
11111100010
00000011110
11111100111
00000011101
11111100100
00000010111
...

result:

ok 

Test #58:

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

input:

12 5
2 4 6 8 10

output:

impossible

result:

ok 

Test #59:

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

input:

12 1
7

output:

000000000000
111111000001
000000000011
111111000010
000000000110
111111000111
000000000101
111111000100
000000001100
111111001101
000000001111
111111001110
000000001010
111111001011
000000001001
111111001000
000000011000
111111011001
000000011011
111111011010
000000011110
111111011111
000000011101
1...

result:

ok 

Test #60:

score: 0
Accepted
time: 10ms
memory: 7036kb

input:

12 2
3 6

output:

000000000000
110000000001
000000000011
110000000010
000000000110
110000000111
000000000101
110000000100
000000001100
110000001101
000000001111
110000001110
000000001010
110000001011
000000001001
110000001000
000000011000
110000011001
000000011011
110000011010
000000011110
110000011111
000000011101
1...

result:

ok 

Test #61:

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

input:

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

output:

000000000000
110000000001
000000000011
110000000010
000000000110
110000000111
000000000101
110000000100
000000001100
110000001101
000000001111
110000001110
000000001010
110000001011
000000001001
110000001000
000000011000
110000011001
000000011011
110000011010
000000011110
110000011111
000000011101
1...

result:

ok 

Test #62:

score: 0
Accepted
time: 17ms
memory: 7032kb

input:

12 6
9 10 7 3 12 8

output:

000000000000
110000000001
000000000011
110000000010
000000000110
110000000111
000000000101
110000000100
000000001100
110000001101
000000001111
110000001110
000000001010
110000001011
000000001001
110000001000
000000011000
110000011001
000000011011
110000011010
000000011110
110000011111
000000011101
1...

result:

ok 

Test #63:

score: 0
Accepted
time: 8ms
memory: 6656kb

input:

13 6
2 4 6 8 10 12

output:

impossible

result:

ok 

Test #64:

score: 0
Accepted
time: 11ms
memory: 7168kb

input:

13 1
11

output:

0000000000000
1111111111001
0000000000011
1111111111010
0000000000110
1111111111111
0000000000101
1111111111100
0000000001111
1111111110110
0000000001100
1111111110101
0000000001001
1111111110000
0000000001010
1111111110011
0000000011000
1111111100001
0000000011011
1111111100010
0000000011110
111111...

result:

ok 

Test #65:

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

input:

13 2
8 7

output:

0000000000000
1111110000001
0000000000011
1111110000010
0000000000110
1111110000111
0000000000101
1111110000100
0000000001100
1111110001101
0000000001111
1111110001110
0000000001010
1111110001011
0000000001001
1111110001000
0000000011000
1111110011001
0000000011011
1111110011010
0000000011110
111111...

result:

ok 

Test #66:

score: 0
Accepted
time: 15ms
memory: 7348kb

input:

13 11
2 8 4 6 12 13 7 1 3 5 10

output:

0000000000000
0000000000001
0000000000011
0000000000010
0000000000110
0000000000111
0000000000101
0000000000100
0000000001100
0000000001101
0000000001111
0000000001110
0000000001010
0000000001011
0000000001001
0000000001000
0000000011000
0000000011001
0000000011011
0000000011010
0000000011110
000000...

result:

ok 

Test #67:

score: 0
Accepted
time: 13ms
memory: 7172kb

input:

13 6
8 6 5 13 1 4

output:

0000000000000
0000000000001
0000000000011
0000000000010
0000000000110
0000000000111
0000000000101
0000000000100
0000000001100
0000000001101
0000000001111
0000000001110
0000000001010
0000000001011
0000000001001
0000000001000
0000000011000
0000000011001
0000000011011
0000000011010
0000000011110
000000...

result:

ok 

Test #68:

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

input:

14 6
2 4 6 8 10 12

output:

impossible

result:

ok 

Test #69:

score: 0
Accepted
time: 26ms
memory: 7752kb

input:

14 1
11

output:

00000000000000
11111111110001
00000000000011
11111111110010
00000000000110
11111111110111
00000000000101
11111111110100
00000000001100
11111111111101
00000000001111
11111111111110
00000000001010
11111111111011
00000000001001
11111111111000
00000000011011
11111111101010
00000000011000
11111111101001
...

result:

ok 

Test #70:

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

input:

14 2
2 12

output:

impossible

result:

ok 

Test #71:

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

input:

14 3
10 3 6

output:

00000000000000
11000000000001
00000000000011
11000000000010
00000000000110
11000000000111
00000000000101
11000000000100
00000000001100
11000000001101
00000000001111
11000000001110
00000000001010
11000000001011
00000000001001
11000000001000
00000000011000
11000000011001
00000000011011
11000000011010
...

result:

ok 

Test #72:

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

input:

14 7
6 2 9 14 7 5 12

output:

00000000000000
11110000000001
00000000000011
11110000000010
00000000000110
11110000000111
00000000000101
11110000000100
00000000001100
11110000001101
00000000001111
11110000001110
00000000001010
11110000001011
00000000001001
11110000001000
00000000011000
11110000011001
00000000011011
11110000011010
...

result:

ok 

Test #73:

score: 0
Accepted
time: 26ms
memory: 8464kb

input:

15 2
8 5

output:

000000000000000
111100000000001
000000000000011
111100000000010
000000000000110
111100000000111
000000000000101
111100000000100
000000000001100
111100000001101
000000000001111
111100000001110
000000000001010
111100000001011
000000000001001
111100000001000
000000000011000
111100000011001
000000000011...

result:

ok 

Test #74:

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

input:

15 3
14 2 12

output:

impossible

result:

ok 

Test #75:

score: 0
Accepted
time: 26ms
memory: 8444kb

input:

15 8
13 7 11 9 14 3 10 12

output:

000000000000000
110000000000001
000000000000011
110000000000010
000000000000110
110000000000111
000000000000101
110000000000100
000000000001100
110000000001101
000000000001111
110000000001110
000000000001010
110000000001011
000000000001001
110000000001000
000000000011000
110000000011001
000000000011...

result:

ok 

Test #76:

score: 0
Accepted
time: 57ms
memory: 10508kb

input:

16 2
5 15

output:

0000000000000000
1111000000000001
0000000000000011
1111000000000010
0000000000000110
1111000000000111
0000000000000101
1111000000000100
0000000000001100
1111000000001101
0000000000001111
1111000000001110
0000000000001010
1111000000001011
0000000000001001
1111000000001000
0000000000011000
11110000000...

result:

ok 

Test #77:

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

input:

16 3
6 16 15

output:

0000000000000000
1111111111111101
0000000000000011
1111111111111110
0000000000000101
1111111111111000
0000000000000110
1111111111111011
0000000000001100
1111111111110001
0000000000001111
1111111111110010
0000000000001001
1111111111110100
0000000000001010
1111111111110111
0000000000011000
11111111111...

result:

ok 

Test #78:

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

input:

16 8
14 8 15 4 13 1 3 10

output:

0000000000000000
0000000000000001
0000000000000011
0000000000000010
0000000000000110
0000000000000111
0000000000000101
0000000000000100
0000000000001100
0000000000001101
0000000000001111
0000000000001110
0000000000001010
0000000000001011
0000000000001001
0000000000001000
0000000000011000
00000000000...

result:

ok