QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#796416#9802. Light Up the Griducup-team5207WA 56ms7976kbC++204.2kb2024-12-01 18:19:082024-12-01 18:19:17

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 7976kb

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: 0ms
memory: 7820kb

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: 1ms
memory: 7680kb

input:

1 1000000 1000000 1000000 1000000
1
11
11

output:

2000000

result:

ok 1 number(s): "2000000"

Test #4:

score: -100
Wrong Answer
time: 56ms
memory: 7688kb

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:

36
34
36
38
42
38
43
40
42
39
36
44
36
36
39
34
30
37
41
42
40
38
42
39
27
36
39
40
34
33
34
39
36
38
39
42
42
35
39
36
31
38
37
38
44
37
41
39
36
36
39
31
42
40
38
39
45
38
43
36
42
37
35
35
36
38
40
36
42
42
36
38
30
36
34
40
36
38
36
36
34
40
32
36
36
36
40
40
36
40
38
41
36
39
40
27
38
42
34
36
...

result:

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