QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#371864#244. Turn Off The Lighttxl162110 0ms0kbC++172.1kb2024-03-30 17:22:552024-03-30 17:22:56

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Time Limit Exceeded

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
1
-1
6
0
10
2
12
2
24
12
26
0
30
14
36
6
40
20
38
10
60
40
58
24
62
42
60
0
65
39
66
21
80
50
83
15
90
60
93
34
87
57
80
25
120
90
123
64
117
87
110
42
123
93
120
67
118
88
129
0
119
81
126
51
128
86
125
33
150
108
147
70
153
111
152
31
168
126
165
88
171
129
170
54
165
123
168
85
154
112
159
49
2...

result: