mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
14 lines
220 B
Python
14 lines
220 B
Python
def problem_p03672(input_data):
|
|
s = input_data[:-1]
|
|
|
|
for i in range(len(s)):
|
|
|
|
x = s[:i]
|
|
|
|
n = len(s[:i])
|
|
|
|
if n % 2 == 0 and x[: i // 2] == x[i // 2 :]:
|
|
|
|
ans = n
|
|
|
|
return ans
|