QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#503002#1468. Shuffle'm Upxiaowuc1100 ✓39ms37472kbJava8985b2024-08-03 15:47:242024-08-03 15:47:25

詳細信息


Pretests


Final Tests

Test #1:

score: 100
Accepted
time: 39ms
memory: 37472kb

input:

11
4
AHAH
HAHA
HHAAAAHH
3
CDE
CDE
EEDDCC
9
ACCABCABC
DEFDEFDEF
ECECECAFAFAFDBDBDB
10
ABCDEFGHCD
AAAAAAAAAA
BDFHDAAAAAACEGCAAAAA
100
ABCDEFGHCDABCDEFGHCDABCDEFGHCDABCDEFGHCDABCDEFGHCDABCDEFGHCDABCDEFGHCDABCDEFGHCDABCDEFGHCDABCDEFGHCD
ABCDEFGHCDABCDEFGHCDABCDEFGHCDABCDEFGHCDABCDEFGHCDABCDEFGHCDABCDEFG...

output:

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

result:

ok 11 lines