Submission #8105944


Source Code Expand

Copy
S = input()

for i in range(2, len(S), 2):
  s = S[:-i]
  if s[:len(s)//2] == s[len(s)//2:]:
    print(len(s))
    exit()

Submission Info

Submission Time
Task B - ss
User K0U
Language Python3 (3.4.3)
Score 200
Code Size 127 Byte
Status
Exec Time 17 ms
Memory 3060 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample1.txt, sample2.txt, sample3.txt, sample4.txt
All 200 / 200 mn.txt, mx_50_1_0.txt, rnd_22_1_0.txt, rnd_22_1_11.txt, rnd_22_1_7.txt, rnd_6_8_2.txt, rnd_7_1_0.txt, rnd_7_1_5.txt, rnd_7_1_6.txt, rndmx_50_1_0.txt, sample1.txt, sample2.txt, sample3.txt, sample4.txt
Case Name Status Exec Time Memory
mn.txt 17 ms 2940 KB
mx_50_1_0.txt 17 ms 2940 KB
rnd_22_1_0.txt 17 ms 2940 KB
rnd_22_1_11.txt 17 ms 2940 KB
rnd_22_1_7.txt 17 ms 3060 KB
rnd_6_8_2.txt 17 ms 2940 KB
rnd_7_1_0.txt 17 ms 2940 KB
rnd_7_1_5.txt 17 ms 2940 KB
rnd_7_1_6.txt 17 ms 2940 KB
rndmx_50_1_0.txt 17 ms 3060 KB
sample1.txt 17 ms 2940 KB
sample2.txt 17 ms 2940 KB
sample3.txt 17 ms 2940 KB
sample4.txt 17 ms 2940 KB