Division + LCP (hard version)
1968G22200· master3s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
73 1 3aba3 2 3aaa7 1 5abacaba9 1 6abababcab10 1 10aaaaaaawac9 1 9abafababa7 2 7vvzvvvv
Output
3 1 01 17 3 1 1 09 2 2 2 0 010 3 2 1 1 1 1 1 0 09 3 2 1 1 0 0 0 02 2 1 1 1 0
58%
1968G2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)