QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#371530#244. Turn Off The LightZhangYiDe0 262ms67360kbC++143.6kb2024-03-30 13:46:302024-03-30 13:46:32

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 262ms
memory: 67360kb

input:

146645
2
00
2
10
2
01
2
11
3
000
3
100
3
010
3
110
3
001
3
101
3
011
3
111
4
0000
4
1000
4
0100
4
1100
4
0010
4
1010
4
0110
4
1110
4
0001
4
1001
4
0101
4
1101
4
0011
4
1011
4
0111
4
1111
5
00000
5
10000
5
01000
5
11000
5
00100
5
10100
5
01100
5
11100
5
00010
5
10010
5
01010
5
11010
5
00110
5
10110
5...

output:

0
3
7
6
0
3
7
12
14
24
12
26
0
3
7
36
14
40
20
38
26
60
40
58
24
62
42
60
0
3
7
66
14
80
50
83
26
90
60
93
34
87
57
80
45
120
90
123
64
117
87
110
42
123
93
120
67
118
88
129
0
3
7
126
14
128
86
125
26
150
108
147
70
153
111
152
45
168
126
165
88
171
129
170
54
165
123
168
85
154
112
159
73
210
168
...

result:

wrong answer 2nd lines differ - expected: '5', found: '3'