QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#59777#2827. AutobiographyZhaoZiLongWA 22ms28188kbC++171.6kb2022-11-01 13:56:262022-11-01 13:56:27

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 5ms
memory: 27240kb

input:

5 4
bbobo
1 3
2 3
3 4
4 5
4 6
bobo
1 2
1 3
1 4
2 3
2 4
3 4
4 0
bobo

output:

2
4
0

result:

ok 3 lines

Test #2:

score: -100
Wrong Answer
time: 22ms
memory: 28188kb

input:

4 4
oobo
2 3
4 1
4 3
3 1
4 3
obob
1 4
2 3
1 2
4 4
obob
3 1
2 3
2 1
1 4
4 3
bboo
2 4
4 1
3 4
4 3
bbbo
1 4
1 3
4 2
4 4
obbo
3 4
2 4
2 3
3 1
4 3
bobo
2 3
4 3
1 4
4 3
obbb
3 4
4 2
1 4
4 5
bobo
4 1
2 1
3 1
4 3
2 4
4 4
obbo
3 4
3 1
2 3
1 4
4 3
bobb
4 2
4 1
2 3
4 3
obbo
3 1
3 2
1 2
4 4
ooob
2 1
3 1
3 4
1 4...

output:

0
3
3
2
2
3
3
2
3
2
2
2
2
2
2
2
0
2
2
2
2
3
2
0
2
3
2
2
2
2
2
3
2
2
2
0
2
3
4
2
0
2
2
2
2
2
2
0
4
3
0
2
0
2
2
2
0
2
4
4
2
2
2
0
2
2
2
0
2
2
2
2
2
2
2
2
2
2
2
2
2
0
2
3
2
3
0
0
0
2
2
2
4
3
2
0
4
2
4
2
2
2
2
3
2
3
0
2
2
0
2
2
2
2
2
2
2
2
2
0
2
3
2
2
2
2
2
2
3
0
2
2
2
0
2
2
2
0
4
2
0
2
2
2
2
3
4
0
2
2
...

result:

wrong answer 2nd lines differ - expected: '1', found: '3'