Given two strings and , print the maximum such that the prefix of length of is equal to the suffix of length of .
Input consists of several cases, each one with and . Every string is made up of between 1 and lowercase letters.
For every case, print .
Author: Alex Alvarez
Generation: 2026-01-25T10:18:26.608Z
© Jutge.org, 2006–2026.
https://jutge.org