QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#808343#9802. Light Up the GridNailongGroupWA 279ms4256kbC++143.8kb2024-12-10 20:04:232024-12-10 20:04:24

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 279ms
memory: 4196kb

input:

2 1000 100 10 1
4
10
00

01
00

00
10

00
01
1
11
11

output:

1121
2

result:

ok 2 number(s): "1121 2"

Test #2:

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

input:

2 1 1 1 1
4
10
00

01
00

00
10

00
01
1
11
11

output:

5
2

result:

ok 2 number(s): "5 2"

Test #3:

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

input:

1 1000000 1000000 1000000 1000000
1
11
11

output:

2000000

result:

ok 1 number(s): "2000000"

Test #4:

score: -100
Wrong Answer
time: 121ms
memory: 4256kb

input:

10000 8 2 7 8
8
00
01

00
11

00
10

11
11

10
10

01
10

01
00

10
11
8
11
01

11
00

01
10

11
11

00
01

01
01

01
00

11
10
9
00
00

01
01

10
11

00
01

11
10

11
00

11
11

00
11

01
10
9
11
11

10
00

11
00

11
01

00
10

01
11

00
01

01
01

10
01
11
00
01

01
01

10
10

00
11

11
11

11
10
...

output:

34
32
36
37
40
36
42
38
40
41
36
44
34
38
38
32
29
40
40
40
38
40
44
38
29
38
38
38
34
34
33
42
34
36
41
40
46
34
38
34
29
36
40
40
42
36
39
38
38
38
41
29
40
42
38
42
44
41
41
34
42
39
37
33
34
38
38
37
42
40
34
36
28
34
34
38
36
39
38
38
36
40
34
34
36
34
42
40
38
38
40
40
37
40
38
29
38
40
38
34
...

result:

wrong answer 4th numbers differ - expected: '36', found: '37'