QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#188321#4172. 最优图像 Hussein#5 2ms3948kbC++820b2023-09-25 18:57:122023-09-25 18:57:12

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3856kb

input:

3 4
18 97 53 67
60 91 25 89
18 45 7 94
2 3 1
2 1 3 0

output:

0110
1010
0010

result:

wrong answer 

Test #2:

score: 0
Wrong Answer
time: 0ms
memory: 3688kb

input:

5 5
89 27 28 98 2
4 15 78 54 8
76 48 50 78 16
47 81 91 67 36
21 51 60 18 94
4 3 3 2 4
4 2 4 4 2

output:

11110
01110
10110
00110
10001

result:

wrong answer 

Test #3:

score: 0
Wrong Answer
time: 0ms
memory: 3632kb

input:

5 2
4 77
98 78
76 72
5 30
34 10
1 0 1 0 2
1 3

output:

01
00
10
00
01

result:

wrong answer 

Test #4:

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

input:

5 1
53
17
41
64
61
1 1 1 1 0
4

output:

1
1
1
1
0

result:

ok 

Test #5:

score: 0
Wrong Answer
time: 0ms
memory: 3820kb

input:

100 100
50 39 19 9 18 11 29 70 48 64 59 9 2 56 1 56 16 80 37 86 6 50 66 10 71 53 21 11 3 82 62 97 72 85 97 59 27 81 41 69 81 68 69 20 48 30 57 67 17 74 75 64 38 18 79 96 84 62 84 51 89 11 92 76 82 88 1 79 80 34 84 15 24 13 19 55 53 66 66 60 37 61 19 1 35 42 15 77 11 96 18 20 73 14 82 4 83 66 87 22
8...

output:

1000000101100101010100101100011111110101111000110111001111111011110110100001111101000001010010101110
1001000010001100101101011010010010011001111101001011100001101011100000011011111011101100001111101011
01010110101101010111000010100110001100101001011110100011101011000001011010100111101000011101111111...

result:

wrong answer 

Test #6:

score: 0
Wrong Answer
time: 1ms
memory: 3708kb

input:

90 80
3 35 67 49 5 77 97 46 77 93 37 47 25 18 21 80 97 63 8 30 8 82 20 63 38 99 54 87 74 9 60 6 64 18 34 10 2 86 88 31 66 54 67 75 0 64 54 14 58 26 99 30 43 7 66 64 12 77 45 60 1 65 73 51 7 72 60 62 89 7 29 28 66 65 2 56 12 97 24 21
75 81 43 34 30 28 94 71 55 57 71 75 94 40 84 97 62 96 46 60 51 85 4...

output:

00100110110000011100010101111010100001101111010010100011010101100111100011010100
11000011001110111100010111110111011101000001001000010000010000001011111000000110
01100101001010001111010011000110010101100101001010100100110110100001100001111010
000100110101100010110001110010101101011111011001000111000...

result:

wrong answer 

Test #7:

score: 0
Wrong Answer
time: 0ms
memory: 3684kb

input:

70 50
79 55 23 27 92 19 57 13 54 13 33 17 98 54 19 30 45 21 18 12 52 55 83 56 90 32 55 9 42 17 85 16 70 11 20 11 3 31 24 55 54 1 85 71 26 94 1 64 79 25
92 18 46 30 57 95 46 62 26 75 6 10 62 88 20 74 98 75 2 31 18 62 51 47 25 23 4 5 12 41 67 13 15 85 32 18 64 76 90 2 73 11 28 49 48 87 85 64 33 67
32 ...

output:

11001010101011001000111111101010100000011011010110
10001111010011011100011100000010010011101001111101
01110101111010110011011010000011000000000000011010
10000011111010010000001110100010111001011010011000
00011110110001110001111101100100011111110011011011
100100001111000001111010000111110110111101001...

result:

wrong answer 

Test #8:

score: 0
Wrong Answer
time: 0ms
memory: 3704kb

input:

90 70
63 12 57 79 81 5 48 14 17 74 16 35 1 14 4 2 19 28 94 23 67 96 85 24 53 34 10 26 87 82 45 47 95 26 68 53 66 57 83 60 42 61 65 88 75 27 5 32 60 75 63 84 20 65 20 65 80 89 44 79 77 91 59 83 27 38 86 30 40 45
26 24 77 10 89 69 76 55 12 66 33 71 81 11 70 10 34 59 73 51 21 27 43 17 73 28 27 63 77 3 ...

output:

1011101001000000001011101000110010111111011110001111010111011111001000
0010111101011010011100001001101000110101100111110000011001110000100000
1001110000101101010111110010000000011010011100011010111001111100111101
1001010101010110100010110111011001001100111010010001110001010110110100
0100110100100001...

result:

wrong answer 

Test #9:

score: 0
Wrong Answer
time: 1ms
memory: 3792kb

input:

70 91
56 86 65 26 14 48 7 16 52 21 25 35 93 14 69 22 23 2 58 2 48 62 25 32 71 45 47 75 90 7 14 22 10 94 21 88 90 46 98 70 4 69 65 97 39 59 78 9 98 46 74 37 24 21 32 92 84 82 85 67 42 41 60 8 95 15 88 58 9 72 18 42 59 25 87 85 32 92 18 75 49 11 42 80 79 83 77 38 54 77 13
57 28 45 60 62 19 19 4 85 40 ...

output:

1110010010001010001011001011100001011011011101101010000111110010101101001011010110011110110
0001100010110001111111001001000011010111100011101110001100101011110000000000110110000001011
1010110100110011000010110111000110000110010100110010001010111000001010010110110111100110000
001101101000011101100000...

result:

wrong answer 

Test #10:

score: 0
Wrong Answer
time: 1ms
memory: 3764kb

input:

92 70
38 17 66 23 19 95 80 26 41 92 14 45 2 49 48 80 50 79 55 90 46 5 29 45 93 59 75 76 59 15 53 79 12 2 57 53 87 16 43 46 87 31 87 99 81 81 91 74 7 32 59 14 65 17 58 75 11 24 91 69 78 51 8 87 34 97 25 14 78 14
28 31 90 40 63 94 10 11 95 3 71 36 60 78 60 74 18 17 85 83 86 5 54 26 55 6 50 76 38 67 6 ...

output:

0010011001000101111100001111101100111000101111110010101100111101010010
0011110010111111001110101011110011110001101100110101100010011010010011
0101100011110110101001110010110010101101100001111001000110011101111011
1100010011010110111111101000100000101010111101110100111011011011111111
1010010101011110...

result:

wrong answer 

Test #11:

score: 0
Wrong Answer
time: 1ms
memory: 3840kb

input:

70 93
80 17 0 20 69 2 3 33 48 40 49 74 49 6 69 20 5 54 89 92 91 26 63 69 23 27 76 16 74 44 87 15 63 32 87 77 31 18 82 93 76 27 67 80 29 23 63 25 29 87 3 47 21 90 17 38 67 67 82 46 44 99 99 89 92 84 58 90 41 80 55 89 97 38 34 56 4 33 7 7 69 27 89 16 63 49 11 94 40 84 77 7 89
60 89 44 57 89 57 92 98 1...

output:

100010000001001000111011001010101011001110110010010001001110011111110111100100001010100101101
110111110010101001100010110001110001010110011001001010101110001011110100111011110000000100011
100001101100000111010000111000100100011110100100101111100100101011000110011010111101100000110
110010100101000110...

result:

wrong answer 

Test #12:

score: 0
Wrong Answer
time: 2ms
memory: 3764kb

input:

94 70
85 15 71 3 27 91 61 20 19 26 78 40 18 51 81 68 63 53 80 61 26 23 88 84 96 38 42 30 97 57 69 53 28 77 61 15 17 58 51 47 9 26 98 86 17 13 5 93 88 89 78 56 15 23 51 36 78 57 11 32 77 65 91 44 6 22 89 91 17 73
32 51 9 3 90 22 16 97 87 92 98 24 75 26 22 75 13 41 22 93 80 7 16 43 7 97 57 73 4 42 41 ...

output:

1010011000100111111100111000111101100110001100011111001011001110001101
0000100111101001000110000111000000010111111000111001110001101010100000
1101011110100000100001011000100100101101110111101101011111101010101101
0001011011000011110011010111101010011011011101010010001111011100010000
0011000000011000...

result:

wrong answer 

Test #13:

score: 0
Wrong Answer
time: 1ms
memory: 3748kb

input:

80 92
56 25 15 26 4 14 80 91 43 51 96 6 32 78 60 68 6 90 33 52 34 72 30 93 11 12 25 17 46 65 66 36 92 88 62 60 15 30 80 54 26 19 10 58 21 29 88 64 13 85 26 47 97 13 72 31 28 35 48 81 29 33 80 60 58 50 52 66 59 31 96 98 8 10 49 20 61 50 63 96 82 11 91 2 32 95 6 9 43 85 6 23
76 86 31 45 88 69 12 51 82...

output:

10000011011001110101010100000110111100110001001101001010000100111111101100001111101001000100
11001100110000111001001000010000000100011110100110100100011011100001010010100001111100101010
00011010101101101011001010110011101001011110101011000110100000101111101001011011101110010010
011100011111001101001...

result:

wrong answer 

Test #14:

score: 0
Wrong Answer
time: 2ms
memory: 3948kb

input:

94 90
90 37 70 59 2 64 48 59 39 96 86 24 2 73 35 19 88 67 75 84 89 96 0 72 81 68 69 38 44 72 46 16 62 18 23 31 27 16 51 27 36 73 1 72 19 55 12 85 27 67 32 25 78 99 95 56 97 70 37 86 77 21 12 71 38 16 7 38 53 95 20 39 70 54 12 79 62 2 2 22 97 2 47 8 87 28 41 58 99 25
97 35 61 24 7 75 76 77 40 40 91 8...

output:

101101010110010011111101111001001000000001010001010011101101100100000100100110001000100110
101001110011000000100001010000111110010111100110100010011101010000110010110110010100011010
001011001010111111000011011100101101100010111001011010100110000110001001100001110000001001
010001110010100100001101000...

result:

wrong answer 

Test #15:

score: 0
Wrong Answer
time: 2ms
memory: 3768kb

input:

100 96
15 69 93 14 67 63 31 4 38 79 67 98 35 15 29 84 94 97 56 60 77 46 99 45 21 66 68 37 67 19 71 49 91 17 95 60 57 37 70 50 7 20 22 30 86 2 64 57 88 57 12 56 94 44 21 16 25 69 6 25 58 70 21 29 18 40 3 25 3 20 32 57 1 83 88 11 23 31 23 38 94 14 65 89 58 2 21 8 86 58 39 99 67 36 23 20
60 15 16 63 93...

output:

011011000111000111111110011010111011101100001011110110000100110000000001011000001011100011011000
100110100001010100101010100010100111011011010010010100000111100000110001100010001010100110001110
100011100010011110111100100110101101110001010110111110011001001101101110000001011010011101011111
110101110...

result:

wrong answer 

Test #16:

score: 0
Wrong Answer
time: 2ms
memory: 3768kb

input:

97 100
96 14 98 85 56 45 13 39 24 96 9 28 49 15 10 28 56 84 1 81 75 53 5 59 41 26 28 14 40 83 93 60 23 5 24 86 84 20 37 56 30 49 96 55 48 61 44 34 23 86 35 77 8 20 34 50 4 14 57 32 51 18 1 77 23 87 12 98 31 6 17 46 11 99 48 51 57 44 8 20 21 34 75 7 94 23 58 85 37 80 94 52 93 28 10 88 47 96 79 26
94 ...

output:

1111111111011111110111011111111110111111111111111111011101111101111110111111110111101111111111011111
1111111111111111101110111101110011111101011111100111111110101111101111110111111111011101111110111110
11101111111111101111111011111111111111111111110111111111101010111011110111111111011110010111111111...

result:

wrong answer 

Test #17:

score: 0
Wrong Answer
time: 2ms
memory: 3772kb

input:

100 98
81 66 80 45 7 41 37 62 97 41 56 61 73 10 65 87 35 5 15 16 62 51 67 12 4 21 13 92 89 10 45 89 68 13 90 98 45 70 45 39 94 34 10 8 1 45 31 94 54 76 57 56 65 91 82 58 62 36 99 30 11 61 35 99 41 74 41 35 71 7 79 35 55 76 78 36 10 94 36 88 55 1 71 15 87 94 63 27 79 36 67 42 13 21 93 79 24 70
86 75 ...

output:

11110111111110111011111101111011111111111100011111111111111101111111101111110111101111111111111111
11101111111110111101001111111101110111011111111101111111011111011111111111101101111011100111101111
01111111111110011101111101111101111111011110111010111111111111111011111111111111111110111111111111
111...

result:

wrong answer 

Test #18:

score: 0
Wrong Answer
time: 2ms
memory: 3728kb

input:

99 100
36 56 86 94 52 25 84 92 47 52 81 7 51 28 29 34 85 50 32 37 78 83 14 70 29 67 60 26 84 61 72 91 53 89 8 9 3 92 56 5 92 27 9 89 78 71 17 50 5 35 4 90 23 38 7 58 7 79 40 35 86 70 21 34 47 93 77 18 60 91 52 9 41 3 41 7 9 52 61 42 3 8 67 13 75 67 31 96 4 89 27 16 84 54 83 3 30 24 43 17
84 90 95 30...

output:

1111111111101111111111111111111111010110111111110101110101111111111111111010111101111111011111101111
1111111110111110111111011001111111111111111111111111100111011111110110111111111111111111111111111101
11110111111111111110111111110111101111111111101101111111111011011111111111111101111111111111111111...

result:

wrong answer 

Test #19:

score: 0
Wrong Answer
time: 2ms
memory: 3772kb

input:

100 100
8 71 80 95 15 86 16 70 3 94 45 62 34 52 83 64 43 84 36 86 47 9 91 18 79 84 99 20 43 10 38 68 16 43 54 92 50 97 12 78 41 65 59 6 33 88 76 19 48 47 76 71 30 11 81 48 31 95 8 33 16 49 50 85 35 57 41 86 60 3 46 13 36 78 69 69 41 23 81 45 50 12 20 6 77 34 37 53 78 98 48 85 86 23 9 95 67 83 9 95
4...

output:

0111111101111111111110111111101111111101111011111111101111011111111110111111111111101111111111011101
1111111111111111110101111111111111111111011111111011111111111111111111110011111111110111111111111111
11111111101110111111110111101111111111111111111111111101111111011111101111111111011111111111111111...

result:

wrong answer 

Test #20:

score: 0
Wrong Answer
time: 1ms
memory: 3712kb

input:

100 100
65 29 5 73 18 43 71 45 58 66 81 49 24 8 56 45 97 83 75 75 24 50 89 53 81 82 41 75 64 38 17 67 63 23 71 22 45 4 97 64 68 9 46 15 2 42 25 32 80 42 54 99 14 4 3 41 38 35 33 62 50 13 59 64 20 29 13 40 29 57 13 47 37 29 90 50 27 58 50 85 94 41 18 14 98 91 79 12 20 73 7 18 4 56 78 22 27 53 29 59
6...

output:

1111111111111111111111111111111111111111111101111111111111111111111111111111111111111111111111111111
1111111111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111111
11111111111111111101111111111111111111111111111111111111111111111111111111111111011111111111111111...

result:

wrong answer