QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#808255#9802. Light Up the Griducup-team6187#WA 104ms19672kbC++203.4kb2024-12-10 19:01:212024-12-10 19:01:21

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 91ms
memory: 19672kb

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: 63ms
memory: 16464kb

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: 65ms
memory: 15944kb

input:

1 1000000 1000000 1000000 1000000
1
11
11

output:

2000000

result:

ok 1 number(s): "2000000"

Test #4:

score: -100
Wrong Answer
time: 104ms
memory: 19656kb

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:

8
8
8
8
8
36
8
38
40
8
8
8
34
37
37
8
29
8
39
40
38
8
8
8
8
8
8
38
34
8
32
8
8
8
8
8
8
34
37
34
29
8
8
8
8
35
8
8
38
8
8
29
8
8
36
8
43
8
41
8
8
39
8
8
34
8
8
8
42
40
8
8
28
34
32
8
8
39
8
37
8
8
8
8
8
34
8
40
8
8
40
8
8
8
8
8
36
40
36
34
29
27
36
8
34
8
8
8
8
32
38
8
38
8
42
8
8
33
34
37
8
8
32
36
...

result:

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