luogu#P12116. [NWRRC2024] Longest Common Substring

[NWRRC2024] Longest Common Substring

2 2 1
1
6
3 4 2
01
28
7 5 3
110
399
23 42 3
000
174497840