Division + LCP (easy version)
1968G11900· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
73 3 3aba3 3 3aaa7 2 2abacaba9 4 4abababcab10 1 1codeforces9 3 3abafababa5 3 3zpozp
Output
01321020
58%
1968G1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)