QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#306264#4999. AibohphobiAezteam1WA 1ms6180kbC++144.3kb2024-01-16 16:37:302024-01-16 16:37:31

详细

Test #1:

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

input:

3
3 5
abbba
bccab
cabcc
2
0 1
1 0
3 4
aaba
bbaa
abab
1
1 1
4 4
abca
cxxb
bxxc
acba
1
0 1

output:

9
9
-2
-1

result:

ok 4 lines

Test #2:

score: -100
Wrong Answer
time: 1ms
memory: 5100kb

input:

20
2 5
bacba
aabbc
3
0 3
1 4
1 2
2 5
aacba
cbbac
8
0 3
1 2
1 2
1 0
1 2
0 2
0 0
0 0
4 4
aaac
caab
babb
ccba
8
2 0
3 2
2 1
2 1
1 3
2 2
1 2
3 1
4 3
bbb
ccc
abc
caa
3
2 0
0 0
3 2
3 3
cba
abc
bac
4
0 1
0 1
1 0
1 1
4 4
bcab
caba
cbcb
abca
1
1 1
5 4
baba
caba
aacb
abcb
caab
1
4 2
2 3
cab
aac
5
0 0
0 2
0 1
...

output:

6
6
-2
8
8
8
8
8
8
-2
-2
9
-2
-2
-2
-2
-2
-2
-2
7
-2
-2
7
7
5
7
7
-2
-2
5
5
5
5
10
9
-2
-2
9
-2
-2
10
-2
-2
-2
-2
-2
-2
-1
-2
-2
-2
-2
-2
8
8
-2
-2
-2
-2
-2
-2
-2
5
5
5
5
-2
-2
9
-2
9
-2
9
-2
-2
-2
-2
8
-2
7
5
5
6
-2
7
-2
7
-2
-2
7
8
7
7
7
-2
-2
-2
-2
-2
-2
-2
4
7
4
3
3
3
6
-2

result:

wrong answer 10th lines differ - expected: '8', found: '-2'