QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#801735#9802. Light Up the GridHuangHanShengWA 54ms5032kbC++231.5kb2024-12-07 08:20:042024-12-07 08:20:04

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 52ms
memory: 4984kb

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: 35ms
memory: 5032kb

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: 30ms
memory: 4904kb

input:

1 1000000 1000000 1000000 1000000
1
11
11

output:

2000000

result:

ok 1 number(s): "2000000"

Test #4:

score: -100
Wrong Answer
time: 54ms
memory: 4704kb

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:

43
38
41
45
52
38
48
42
50
58
43
47
45
44
38
33
33
45
53
45
44
44
54
48
34
39
50
50
34
39
34
51
41
37
53
49
50
44
42
36
29
47
44
40
58
40
45
46
44
46
50
40
53
44
47
47
51
53
47
35
52
47
42
38
34
41
43
45
52
54
42
37
29
35
36
52
44
49
42
40
36
41
40
43
36
41
49
49
49
39
49
47
42
49
43
33
38
55
36
36
...

result:

wrong answer 1st numbers differ - expected: '34', found: '43'