Problem: Given are a positive integer N and a string S of length N consisting of lowercase English letters.  Determine whether the string is a concatenation of two copies of some string. That is, determine whether there is a string T such that S = T + T.

Submission attempts (in order):
import sys
INPUT = sys.stdin.readline

def SORO_INT(): return int(INPUT())
def MULT_INT_LIST(): return list(map(int, INPUT().split()))
def MULT_INT_MAP(): return map(int, INPUT().split())
def SORO_STRING(): return INPUT()
def MULT_STRING(): return INPUT().split()

N = SORO_INT()
S_moto = SORO_STRING()

if N%2==1:
    print('No')
    sys.exit()

S_1 = S_moto[0:N//2]
S_2 = S_1+S_1
#S_2 = ''.join(S_2)
#print(S_2)
if S_moto == S_2:
    print("Yes")
else:
    print("No")


import sys
INPUT = sys.stdin.readline

def SORO_INT(): return int(INPUT())
def MULT_INT_LIST(): return list(map(int, INPUT().split()))
def MULT_INT_MAP(): return map(int, INPUT().split())
def SORO_STRING(): return INPUT()
def MULT_STRING(): return INPUT().split()

N = SORO_INT()
S = SORO_STRING()
if N%2==1:
    print('No')
    sys.exit()

S = list(S)
S_1 = S[0:N//2]
#print(S_1)
#print(S_1)
#S_2 = S[N_h:]
S_2 = S_1+S_1
#print(S_2)
if S == S_2:
    print("Yes")
else:
    print("No")


import sys
INPUT = sys.stdin.readline

def SORO_INT(): return int(INPUT())
def MULT_INT_LIST(): return list(map(int, INPUT().split()))
def MULT_INT_MAP(): return map(int, INPUT().split())
def SORO_STRING(): return INPUT()
def MULT_STRING(): return INPUT().split()

N = SORO_INT()
S = SORO_STRING()
if N%2==1:
    print('No')
    sys.exit()

S = list(S)
S_1 = S[0:N//2]
print(S_1)
S_2 = S_1+S_1
print(S_2)
if S == S_2:
    print("Yes")
else:
    print("No")


import sys
INPUT = sys.stdin.readline

def SORO_INT(): return int(INPUT())
def MULT_INT_LIST(): return list(map(int, INPUT().split()))
def MULT_INT_MAP(): return map(int, INPUT().split())
def SORO_STRING(): return INPUT()
def MULT_STRING(): return INPUT().split()

N = SORO_INT()
S = SORO_STRING()
S = list(S)
S_1 = S[0:N//2]
#print(S_1)
#S_2 = S[N_h:]
S_2 = S_1+S_1
if S == S_2:
    print("Yes")
else:
    print("No")


import sys
INPUT = sys.stdin.readline

def SORO_INT(): return int(INPUT())
def MULT_INT_LIST(): return list(map(int, INPUT().split()))
def MULT_INT_MAP(): return map(int, INPUT().split())
def SORO_STRING(): return INPUT()
def MULT_STRING(): return INPUT().split()

N = SORO_INT()
S = SORO_STRING()

if N%2==0:
    N = int(N)
else:
    print('No')
    sys.exit()
S_1 = S[:N//2]

S_2 = S_1+S_1
if S == S_2:
    print("Yes")
else:
    print("No")

import sys
INPUT = sys.stdin.readline

def SORO_INT(): return int(INPUT())
def MULT_INT_LIST(): return list(map(int, INPUT().split()))
def MULT_INT_MAP(): return map(int, INPUT().split())
def SORO_STRING(): return INPUT()
def MULT_STRING(): return INPUT().split()

N = SORO_INT()
S_moto = SORO_STRING()

if N%2==1:
    print('No')
    sys.exit()

S_1 = S_moto[0:N//2]
S_2 = S_1+S_1
S_2=str(S_2)
if S_moto == S_2:
    print("Yes")
else:
    print("No")


import sys
INPUT = sys.stdin.readline

def SORO_INT(): return int(INPUT())
def MULT_INT_LIST(): return list(map(int, INPUT().split()))
def MULT_INT_MAP(): return map(int, INPUT().split())
def SORO_STRING(): return INPUT()
def MULT_STRING(): return INPUT().split()

N = SORO_INT()
S_moto = SORO_STRING()
if N%2==1:
    print('No')
    sys.exit()

S = list(S_moto)
S_1 = S[0:N//2]
S_2 = S_1+S_1
S_2 = ''.join(S_2)
print(S_2)
if S_moto == S_2:
    print("Yes")
    sys.exit
else:
    print("No")
    sys.exit


import sys
INPUT = sys.stdin.readline

def SORO_INT(): return int(INPUT())
def MULT_INT_LIST(): return list(map(int, INPUT().split()))
def MULT_INT_MAP(): return map(int, INPUT().split())
def SORO_STRING(): return INPUT()
def MULT_STRING(): return INPUT().split()

N = SORO_INT()
N = N/2
if N%2==0:
    N = int(N)
else:
    print('No')
    #print(N)
    sys.exit()
#print(N)
S = SORO_STRING()
#S = list(S)
S_1 = S[:N]
S_2 = S[N:]
if S_1 == S_2:
    print("Yes")
else:
    print("No")


import sys
INPUT = sys.stdin.readline

def SORO_INT(): return int(INPUT())
def MULT_INT_LIST(): return list(map(int, INPUT().split()))
def MULT_INT_MAP(): return map(int, INPUT().split())
def SORO_STRING(): return INPUT()
def MULT_STRING(): return INPUT().split()

N = SORO_INT()
S_moto = SORO_STRING()

if N%2==1:
    print('No')
    sys.exit()

S_1 = S_moto[0:N//2]
S_2 = S_1+S_1
#S_2 = ''.join(S_2)
print(S_2)
if S_moto == S_2:
    print("Yes")
else:
    print("No")


import sys
INPUT = sys.stdin.readline

def SORO_INT(): return int(INPUT())
def MULT_INT_LIST(): return list(map(int, INPUT().split()))
def MULT_INT_MAP(): return map(int, INPUT().split())
def SORO_STRING(): return INPUT()
def MULT_STRING(): return INPUT().split()

N = SORO_INT()
N = N//2
#print(N)
S = SORO_STRING()
#S = list(S)
S_1 = S[:N]
S_2 = S[N:]
if S_1 == S_2:
    print("Yes")
else:
    print("No")


import sys
INPUT = sys.stdin.readline

def SORO_INT(): return int(INPUT())
def MULT_INT_LIST(): return list(map(int, INPUT().split()))
def MULT_INT_MAP(): return map(int, INPUT().split())
def SORO_STRING(): return INPUT()
def MULT_STRING(): return INPUT().split()

N = SORO_INT()
S = SORO_STRING()

if N%2==0:
    N = int(N)
else:
    print('No')
    sys.exit()
S_1 = S[:N//2]
#print(S_1)
#S_2 = S[N_h:]
S_2 = S_1+S_1
if S == S_2:
    print("Yes")
else:
    print("No")


import sys
INPUT = sys.stdin.readline

def SORO_INT(): return int(INPUT())
def MULT_INT_LIST(): return list(map(int, INPUT().split()))
def MULT_INT_MAP(): return map(int, INPUT().split())
def SORO_STRING(): return INPUT()
def MULT_STRING(): return INPUT().split()

N = SORO_INT()
S_moto = SORO_STRING()
print(S_moto)

if N%2==1:
    print('No')
    sys.exit()

S_1 = S_moto[0:N//2]
S_2 = S_1+S_1

if S_moto == S_2:
    print("Yes")
else:
    print("No")


import sys
INPUT = sys.stdin.readline

def SORO_INT(): return int(INPUT())
def MULT_INT_LIST(): return list(map(int, INPUT().split()))
def MULT_INT_MAP(): return map(int, INPUT().split())
def SORO_STRING(): return INPUT()
def MULT_STRING(): return INPUT().split()

N = SORO_INT()
S = SORO_STRING()

if N%2==0:
    N = int(N)
else:
    print('No')
    sys.exit()
N_h = N//2
S_1 = S[:N_h]
#print(S_1)
S_2 = S[N_h:]
#print(S_2)
if S_1 == S_2:
    print("Yes")
else:
    print("No")


import sys
INPUT = sys.stdin.readline

def SORO_INT(): return int(INPUT())
def MULT_INT_LIST(): return list(map(int, INPUT().split()))
def MULT_INT_MAP(): return map(int, INPUT().split())
def SORO_STRING(): return INPUT()
def MULT_STRING(): return INPUT().split()

N = SORO_INT()
S = SORO_STRING()

S_1 = S[:N//2]
#print(S_1)
#S_2 = S[N_h:]
S_2 = S_1+S_1
if S == S_2:
    print("Yes")
else:
    print("No")


import sys
INPUT = sys.stdin.readline

def SORO_INT(): return int(INPUT())
def MULT_INT_LIST(): return list(map(int, INPUT().split()))
def MULT_INT_MAP(): return map(int, INPUT().split())
def SORO_STRING(): return INPUT()
def MULT_STRING(): return INPUT().split()

N = SORO_INT()
S = SORO_STRING()
if N%2==1:
    print('No')
    sys.exit()

S = list(S)
S_1 = S[0:N//2]
S_2 = S_1+S_1
if S == S_2:
    print("Yes")
    sys.exit
else:
    print("No")
    sys.exit


import sys
INPUT = sys.stdin.readline

def SORO_INT(): return int(INPUT())
def MULT_INT_LIST(): return list(map(int, INPUT().split()))
def MULT_INT_MAP(): return map(int, INPUT().split())
def SORO_STRING(): return INPUT()
def MULT_STRING(): return INPUT().split()

N = SORO_INT()
S = SORO_STRING()
if N%2==1:
    print('No')
    sys.exit()

S = list(S)
S_1 = S[0:N]
S_2 = S_1+S_1
if S == S_2:
    print("Yes")
    sys.exit
else:
    print("No")
    sys.exit


import sys
INPUT = sys.stdin.readline

def SORO_INT(): return int(INPUT())
def MULT_INT_LIST(): return list(map(int, INPUT().split()))
def MULT_INT_MAP(): return map(int, INPUT().split())
def SORO_STRING(): return INPUT()
def MULT_STRING(): return INPUT().split()

N = SORO_INT()
S_moto = SORO_STRING()
S_moto = str(S_moto)

if N%2==1:
    print('No')
    sys.exit()

S_1 = S_moto[0:N//2]
S_2 = S_1+S_1
S_2=str(S_2)
print(S_2)
if S_moto == S_2:
    print("Yes")
else:
    print("No")


import sys
N = int(input())
S = str(input())

if N%2==1:
    print('No')
    sys.exit()

S_1 = S[:N//2]

S_2 = S_1+S_1
if S == S_2:
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted