409124: GYM103443 B Maximum Sub-Reverse Matching

Memory Limit:1024 MB Time Limit:3 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

B. Maximum Sub-Reverse Matchingtime limit per test3 secondsmemory limit per test1024 megabytesinputstandard inputoutputstandard outputExampleInput
5
11
happycoding
onedocument
8
abbbcccd
xcbcbybd
3
cat
dog
4
abcd
xyza
3
dog
pop
Output
2 4 4 8
2 5 2 7
0 0 1 1
0 1 1 4
1 1 1 1

加入题单

算法标签: