ZhenlongDai/ACPR huggingface dataset:
Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
S=input()
a=[]
half=int(N/2)
count=0
for i in range(half):
  if S[i]==S[i+half]:
    count+=1
  
if count==half:
  print("Yes")
else:
  print("No")

Failing test case input:
1


Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N=int(input())
S=input()
a=[]
half=int(N/2)
count=0
if N%2==1:
  print("No")
else:
  for i in range(half):
    if S[i]==S[i+half]:
      count+=1
  
  if count==half:
    print("Yes")
  else:
    print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()

S1 = S[0:N]
if S == S1+S1:
    print ('Yes')
else:
    print('No')


Failing test case input:
6
abcabc

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
N = int(input())
S = input()

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

if S[:N
    print ('Yes')
else:
    print('No')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l = int(input())
s = str(input())

if l %2 == 1:
  print('No')
else:

  t = int(l / 2)

  if (s[0:t] == s[t+1:l+1]):
    print('Yes')
  else:
    print('No')
  

Failing test case input:
6
cbacba

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
l = int(input())
s = str(input())

if l %2 == 1:
  print('No')
else:

  t = int(l / 2)


  if (s[0:t] == s[t:l+1]):
    print('Yes')
  else:
    print('No')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()

if N % 2 == 0 and S[:N] != S[N:]:
    print("Yes")
else:
    print("No")

Failing test case input:
6
abcaac

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
S = input()

if N % 2 == 0 and S[:N
    print("Yes")
else:
    print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x=int(int(input())/2)
y=str(input())
for i in range(x):
  if y[i]!=y[i+x]:
    print("No")
    exit()
print("Yes")

Failing test case input:
1


Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
x=int(input())
t=int(x/2)
y=str(input())
if x%2!=0:
  print("No")
  exit()
for i in range(t):
  if y[i]!=y[i+t]:
    print("No")
    exit()
print("Yes")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
i = int(input()) 
s = input()
if i >= 1 and 100 >= i and i % 2 == 0 and i == len(s) and s.isalpha() and s.islower():
  n = (int)(i/2)
  t_0 = s[0]
  t_1 = s[n]
  for j in range(1, n):
    t_0 += s[j]
  for k in range(n + 1, i):
    t_1 += s[k]
  if t_0 == t_1:
    print("Yes")
  else:
    print("No")

Failing test case input:
6
_ccabc

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
i = int(input()) 
s = input()
if i >= 1 and 100 >= i and i % 2 == 0 and i == len(s) and s.isalpha() and s.islower():
  n = (int)(i/2)
  t_0 = s[0]
  t_1 = s[n]
  for j in range(1, n):
    t_0 += s[j]
  for k in range(n + 1, i):
    t_1 += s[k]
  if t_0 == t_1:
    print("Yes")
  else:
    print("No")
else:
  print("No")
Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()

if N % 2 == 0 and N != 2:
    half_N = int(N / 2)

    if S[0:half_N - 1] == S[half_N:len(S)-1]:
        print('Yes')

elif N == 2 and S[0] == S[1]:
    print('Yes')

else:
    print('No')




Failing test case input:
6
bc]]`c

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
N = int(input())
S = input()

half_N = int(N / 2)
if N % 2 == 0 and N != 2 and S[0:half_N] == S[half_N:len(S)]:
    print('Yes')

elif N == 2 and S[0] == S[1]:
    print('Yes')

else:
    print('No')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = input()

print(s[0:int(n/2)], s[int(n/2):n])

if s[0:int(n/2)] == s[int(n/2):n]:
    print("Yes")
else: print("No")


Failing test case input:
6
cc^_c`

Expected output:
No


Actual output:
cc^ _c`
No


Fixed submission (verdict: Accepted):
n = int(input())
s = input()

if s[0:int(n/2)] == s[int(n/2):n]:
    print("Yes")
else: print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys


N = int(input())
S = input()
if N % 2 == 1:
    print(False)
    sys.exit()
pos = int(N/2)
print(S[:pos] == S[pos:])

Failing test case input:
1


Expected output:
No


Actual output:
False


Fixed submission (verdict: Accepted):
import sys

N = int(input())
S = input()
ret = 'No'
if N % 2 == 1:
    print(ret)
    sys.exit()
pos = int(N/2)
if S[:pos] == S[pos:]:
    ret = 'Yes'
print(ret)

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
N = int(input())
S = input()
if N%2 != 0:
    print("No")
    sys.exit()

mid = int(N/2)
S_pre = S[:mid]
S_later = S[mid:]
print(S_pre)
print(S_later)
if S_pre == S_later:
    print("Yes")
else:
    print("No")


Failing test case input:
6
bc]`c`

Expected output:
No


Actual output:
bc]
`c`
No


Fixed submission (verdict: Accepted):
import sys
N = int(input())
S = input()

mid = int(N/2)
S_pre = S[:mid]
S_later = S[mid:]


if S_pre == S_later:
    print("Yes")
else:
    print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input()) 
s = input() 
b = int(N/2)

if N % 2 == 1:
  print('No')
else:
  s1 = s[0:b]
  s2 = s[b:N]
  print(s1)
  print(s2)
  if s1 == s2:
    print('Yes')
  else:
    print('No')



Failing test case input:
6
afahdd

Expected output:
No


Actual output:
afa
hdd
No


Fixed submission (verdict: Accepted):
N = int(input()) 
s = input() 
b = int(N/2)


if N % 2 == 0:
  s1 = s[0:b]
  s2 = s[b:N]

  if s1 == s2:
    print('Yes')
  else:
    print('No')
else:
  print('No')
Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

def main():
    inNumber = input()
    try:
        wk_inNumber = int(inNumber)
    except Exception as e:
        print('No')
        return 0
    if wk_inNumber > 100 or wk_inNumber <= 0:
        print('No')
        return 0

    inStr = input()
    if inStr.islower() == False:
        print('No')
        return 0

    charInstr = list(inStr)

    if wk_inNumber % 2 == 1:
        print('No')
        return 0

    if wk_inNumber != len(charInstr):
       print('No')
       return 0

    i = 0
    while i < wk_inNumber / 2 :
        j = int(wk_inNumber / 2 + i)
        if charInstr[i] != charInstr[j]:
            print(i)
            print(charInstr[i])
            print('No')
            return 0
        i += 1

    print('Yes')


main()


Failing test case input:
6
ecf`fa

Expected output:
No


Actual output:
0
e
No


Fixed submission (verdict: Accepted):

def main():
    inNumber = input()
    inStr = input()

    try:
        wk_inNumber = int(inNumber)
    except Exception as e:
        print('No')
        return 0
    if wk_inNumber > 100 or wk_inNumber <= 0:
        print('No')
        return 0

    if inStr.islower() == False:
        print('No')
        return 0

    charInstr = list(inStr)

    if wk_inNumber % 2 == 1:
        print('No')
        return 0

    if wk_inNumber != len(charInstr):
       print('No')
       return 0

    i = 0
    while i < wk_inNumber / 2 :
        j = int(wk_inNumber / 2 + i)
        if charInstr[i] != charInstr[j]:
            print('No')
            return 0
        i += 1

    print('Yes')


main()

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
S=input()
ans="NO"
if(N<2):
  print(ans)
middle = N/2
T=S[0:int(N/2)]
T2=S[int(N/2):]
if(T==T2):
  ans ="YES"
print(ans)

Failing test case input:
6
bc]`b`

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N=int(input())
S=input()
ans="No"
if(N<2):
  ans="No"
elif(N%2!=0):
  ans="No"
else:
  T=S[0:int(N/2)]
  if(S==T+T):
    ans ="Yes"
print(ans)

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
S=input()
n=int(N/2)
if N==1:
    print("NO")
else:
    s_1=S[0:n-1]
    s_2=S[n:N-1]
    if s_1==s_2:
        print("Yes")
    else:
        print("NO")   

Failing test case input:
6
daeafc

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N=int(input())
S=input()
n=int(N/2)
if N%2==1:
    print("No")
else:
    s_1=S[0:n]
    s_2=S[n:N]
    if s_1==s_2:
        print("Yes")
    else:
        print("No")
Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def judge(N,str):
    a = list(str)
    b = []
    c = []
    if N%2 == 0:
        for k in range(int(N/2)):
            b.append(a[k])
            c.append(a[k+int(N/2)])
        if b == c:
            print("yes")
        else:
            print("No")
    else:
        print("No")
N = int(input())
S = input()
judge(N,S)

Failing test case input:
6
abcabc

Expected output:
Yes

Actual output:
yes


Fixed submission (verdict: Accepted):
def judge(N,str):
    a = list(str)
    b = []
    c = []
    if N%2 == 0:
        for k in range(int(N/2)):
            b.append(a[k])
            c.append(a[k+int(N/2)])
        if b == c:
            print("Yes")
        else:
            print("No")
    else:
        print("No")
N = int(input())
S = input()
judge(N,S)

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
_ = input()
s = input()

if len(s) % 2 != 0:
    print("No")

half_len = int(len(s)/2)
if s[:half_len]+s[:half_len] == s:
    print("Yes")
else :
    print("No")

Failing test case input:
1
~

Expected output:
No


Actual output:
No
No


Fixed submission (verdict: Accepted):
_ = input()
s = input()

if len(s) % 2 != 0:
    print("No")
    exit()

half_len = int(len(s)/2)
if s[:half_len]+s[:half_len] == s:
    print("Yes")
else :
    print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

def main():
    inNumber = input()
    try:
        wk_inNumber = int(inNumber)
    except Exception as e:
        print('整数値を入力してください')
        return 0
    if wk_inNumber > 100:
        print('100文字オーバー')
        return 0

    inStr = input()
    if inStr.islower() == False:
        print('英小文字を入力')
        return 0

    charInstr = list(inStr)


    if wk_inNumber != len(charInstr):
       print('No')
       return 0

    i = 0
    while i < wk_inNumber / 2 :
        j = int(wk_inNumber / 2 + i)
        if charInstr[i] != charInstr[j]:
            print('No')
            return 0
        i += 1

    print('Yes')


main()


Failing test case input:
1


Expected output:
No


Actual output:
英小文字を入力


Fixed submission (verdict: Accepted):

def main():
    inNumber = input()
    inStr = input()

    try:
        wk_inNumber = int(inNumber)
    except Exception as e:
        print('No')
        return 0
    if wk_inNumber > 100 or wk_inNumber <= 0:
        print('No')
        return 0

    if inStr.islower() == False:
        print('No')
        return 0

    charInstr = list(inStr)

    if wk_inNumber % 2 == 1:
        print('No')
        return 0

    if wk_inNumber != len(charInstr):
       print('No')
       return 0

    i = 0
    while i < wk_inNumber / 2 :
        j = int(wk_inNumber / 2 + i)
        if charInstr[i] != charInstr[j]:
            print('No')
            return 0
        i += 1

    print('Yes')


main()
Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()

if N % 2 == 0 and S[0:round(N / 2)] == S[round(N / 2) + 1:N]:
    print('Yes')
else:
    print('No')

Failing test case input:
6
abcabc

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
N = int(input())
S = input()

if N % 2 == 0 and S[0:round(N / 2)] == S[round(N / 2):N]:
    print('Yes')
else:
    print('No')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()
if N == 1:
    print("No")
    exit()

for i in range(1,N):
    s1 = S[:i]
    s2 = S[i:]
    print(s1,s2)
    if s1 == s2 and len(s1)*2 == N:
        print("Yes")
        exit()
print("No")

Failing test case input:
6
b`^]db

Expected output:
No


Actual output:
b `^]db
b` ^]db
b`^ ]db
b`^] db
b`^]d b
No


Fixed submission (verdict: Accepted):
N = int(input())
S = input()
if N == 1:
    print("No")
    exit()

for i in range(1,N):
    s1 = S[:i]
    s2 = S[i:]
    if s1 == s2 and len(s1)*2 == N:
        print("Yes")
        exit()
print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()
n = int(N/2) - 1
if len(S) % 2 == 1:
  print('No')
else:
  for i in range(n):
    if S[i] == S[i + int(N/2)]:
      print('Yes')
      exit(0)
  print('No')

Failing test case input:
6
dcabca

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
S = input()
if N%2 == 1:
  print('No')
else:
  for i in range(N
    if S[i] != S[N
      print('No')
      exit(0)
  print('Yes')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
if len(S)%2 == 1:
  print("No")
elif S[:int(len(S)/2)]==S[int(len(S)/2):]:
  print("Yes")
else:
  print("No")

Failing test case input:
6
cbacba

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = int(input())
S = input()
if len(S)%2 == 1:
  print("No")
elif S[:int(len(S)/2)]==S[int(len(S)/2):]:
  print("Yes")
else:
  print("No")

Problem: p02860
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N=int(input())
S=input()
if N%2==0 and all(a==b for a,b in zip(S,S[N:])):
       print("Yes")
else:
       print("No")


Failing test case input:
6
ecff`a

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
S=input()

if N%2==0 and all(a==b for a,b in zip(S,S[N
    print("Yes")
else:
    print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = str(input())

result = "yes"
n= int(N/2)
if(N%2 == 0):
    for i in range(n):
        if(S[i] != S[n+i]):
            result = "no"
else:
    result = "no"
print(result)

Failing test case input:
1
y

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
N = int(input())
S = str(input())

result = "Yes"
n= int(N/2)
if(N%2 == 0):
    for i in range(n):
        if(S[i] != S[n+i]):
            result = "No"
else:
    result = "No"
print(result)
Problem: p02860
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N = int(input())
L = list(input())
a = int(N / 2)
print(L)
if N%2 == 0:
    flag = 0
    for i in range(a):
        print(L[i],L[i+a])
        if L[i] != L[i+a]:
            flag = 1
    if flag:
        print("No")
    else:
        print("Yes")
else:
    print("No")

Failing test case input:
6
`b`]cb

Expected output:
No


Actual output:
['`', 'b', '`', ']', 'c', 'b']
` ]
b c
` b
No


Fixed submission (verdict: Accepted):
N = int(input())
L = list(input())
a = int(N / 2)
if N%2 == 0:
    flag = 0
    for i in range(a):
        if L[i] != L[i+a]:
            flag = 1
    if flag:
        print("No")
    else:
        print("Yes")
else:
    print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
s = input()

if s[0:int(a/2)] == s[int(a/2):a]:
    print('yes')
else:
    print('no')

Failing test case input:
6
c`^]cb

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
a = int(input())
s = input()

if s[0:int(a/2)] == s[int(a/2):a]:
    print('Yes')
else:
    print('No')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()

if N%2 != 0:
  print('No')
elif S[1:int(N/2)] == S[int(N/2+1):N]:
  print('Yes')
elif S[1:int(N/2)] != S[int(N/2+1):N]:
  print('No')
else:
  print('Yes')
    

Failing test case input:
6
dcabca

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
S = input()

if N%2 != 0:
  print('No')
elif S[0:int(N/2)] == S[int(N/2):int(N+1)]:
  print('Yes')
else:
  print('No')

Problem: p02860
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
s = input()

if n % 2 == 0:
  if s[0:int(n/2)] == s[int(n/2):]:
  	print("Yes")
else:
  print("No")

Failing test case input:
6
bc]^`c

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
n = int(input())
s = input()
h = int(n/2)

if (n % 2 == 0) and (s[:h] == s[h:]):
  print("Yes")
else:
  print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = input()

t = int(n/2)

if(s[:t]*2 == s):print('YES')
else:print('NO')

Failing test case input:
6
daaced

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = int(input())
s = input()

t = int(n/2)

if(s[:t] + s[:t] == s):print('Yes')
else:print('No')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()

S1 = []
S2 = []

for i in range(int(N/2)):
    S1.append(S[i])
    S2.append(S[i+int(N/2)])
    
if S1 == S2:
    print('Yes')
else:
    print('No')

Failing test case input:
1


Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
S = input()

S1 = []
S2 = []

for i in range(int(N/2)):
    S1.append(S[i])
    S2.append(S[i+int(N/2)])
    
if S1 == S2:
    if N%2 == 1:
        print('No')
    else:
        print('Yes')
else:
    print('No')
Problem: p02860
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n = int(input())
s = input()
if len(s)%2 == 1:
    print('No')
else:
    m = len(s)
    s1, s2 = s[:m], s[m:]
    if s1 == s2:
        print('Yes')
    else:
        print('No')

Failing test case input:
6
cbacba

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = int(input())
s = input()
if n%2 == 1:
    print('No')
else:
    s1, s2 = s[:n
    if s1 == s2:
        print('Yes')
    else:
        print('No')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys


def main():
    [n, s] = [x for x in sys.stdin]
    n = int(n)
    if n % 2 != 0:
        print("No")
        return

    half = int(n / 2)

    if s[:half] == s[half:]:
        print("Yes")
        return

    print("No")


main()


Failing test case input:
6
abcabc

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
import sys


def main():
    [n, s] = [x for x in sys.stdin]
    n = int(n)
    if n % 2 != 0:
        print("No")
        return

    half = int(n / 2)

    if s[0:half] == s[half:n]:
        print("Yes")
        return

    print("No")


main()

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = str(input())
n = 0
A = []
B = []
if N % 2 == 0:
  n = int(N / 2)
  for i in range(0, n):
    A.append(S[i])
    B.append(S[n+i])

if A == B:
  print('Yes')
else:
  print('No')

Failing test case input:
1
|

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
S = str(input())
n = 0
A = []
B = []
if N % 2 == 0:
  n = int(N / 2)
  for i in range(0, n):
    A.append(S[i])
    B.append(S[n+i])

if A == B and N % 2 == 0:
    print('Yes')
else:
  print('No')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
S=input()
if N%2==1:
  print('No')

n=int(N/2)
if S[:n]==S[n:]:
  print('Yes')
else:
  print('No')

Failing test case input:
1
|

Expected output:
No


Actual output:
No
No


Fixed submission (verdict: Accepted):
import sys
N=int(input())
S=input()
if N%2==1:
  print('No')
  sys.exit()

n=int(N/2)
if S[:n]==S[n:]:
  print('Yes')
else:
  print('No')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

s = input()

s_list = list(s)

flag = True
if n % 2 == 1:
    print('No')
    flag = False

if flag and ("".join(s_list[:int(n/2)]) == "".join(s_list[int(n/2):])):
    print('Yes')

Failing test case input:
6
bc]^`b

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
n = int(input())

s = input()

s_list = list(s)
flag = True
if n % 2 == 1:
    print('No')
    flag = False

if flag:
    if "".join(s_list[:int(n/2)]) == "".join(s_list[int(n/2):]):
        print('Yes')
    else:
        print('No')
Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def seigi(s):
  lens = len(s)
  if lens%2==1:
    return "No"
  lensp2 = int(lens/2)
  for si in range(lensp2):
    if s[si] != s[si + lensp2]:
      return "No"
  return "Yes"
  
s = input()
print(seigi(s))

Failing test case input:
6
cbacba

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
def seigi(s):
  lens = len(s)
  if lens%2==1:
    return "No"
  lensp2 = int(lens/2)
  for si in range(lensp2):
    if s[si] != s[si + lensp2]:
      return "No"
  return "Yes"
  
r = input()
s = input()
print(seigi(s))

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
s=str(input())
l1=[]
l2=[]
if len(s)%2!=0:
  print("No")
else:
  for i in range(n):
    if i<n/2:
      l1.append(s[i])
    if i>=n/2:
      l2.append(s[i])
if l1==l2:
  print("Yes")

else:
  print("No")

Failing test case input:
1


Expected output:
No


Actual output:
No
Yes


Fixed submission (verdict: Accepted):
n=int(input())
s=str(input())
import sys
l1=[]
l2=[]
if len(s)%2!=0:
 print("No")
 sys.exit()
else:
 for i in range(n):
   if i<n/2:
     l1.append(s[i])
   if i>=n/2:
     l2.append(s[i])
if l1==l2:
 print("Yes")

else:
 print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()
T = list()
for i in range(int(N / 2)):
    t = S[i]
    T.append(t)
y = 0
n = 0
for i in range(int(N / 2), N):
    for k in range(int(N / 2)):
        if T[k] == S[i]:
            y += 1
        else:
            n += 1
if N % 2 != 0:
    print('No')
elif y == int(N / 2):
    print('Yes') 
else:
    print('No')       


Failing test case input:
6
abcaac

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
S = input()
T = list()
for i in range(int(N / 2), N):
    t = S[i]
    T.append(t)
y = 0
n = 0
for i, k in zip(T, S):
    if i == k:
        y += 1
    else:
        n += 1
if N % 2 != 0:
    print('No')
elif y >= int(N / 2):
    print('Yes') 
else:
    print('No')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
b = input()
count =int(a/2)
bf = b[:count]
bb = b[count:]
if bf == bb:
    print('yes')
else:
    print('no')

Failing test case input:
6
d_cacc

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
a = int(input())
b = input()
count =int(a/2)
bf = b[:count]
bb = b[count:]
if a %2==0 and bf == bb:
    print('Yes')
else:
    print('No')
Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
N = int(input())
S = list(map(str,input().split()))
if N % 2 == 0:
	T_1 = S[:int(len(S)/2)]
	T_2 = S[int(len(S)/2):]
	for i in range(len(T_1)):
		if T_1[i] != T_2[i]:
			print("No")
			sys.exit()	
	print("Yes")
	sys.exit()
else:
	print("No")

Failing test case input:
6
cc^`c`

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
import sys
N = int(input())

S = list(input())
if N % 2 == 0:
	T_1 = S[:int(len(S)/2)]
	T_2 = S[int(len(S)/2):]
	
	
	for i in range(len(T_1)):
		if T_1[i] != T_2[i]:
			print("No")
			sys.exit()	
	print("Yes")
	sys.exit()
else:
	print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()

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

N = int(N / 2)
s = S[:N]

if s + s == S:
    print('Yes')
else:
    print('No')

Failing test case input:
1


Expected output:
No


Actual output:
No
No


Fixed submission (verdict: Accepted):
N = int(input())
S = input()

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

N = int(N / 2)
s = S[:N]

if s + s == S:
    print('Yes')
else:
    print('No')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
s=list(input())
if n%2==0:
    s=set(s)
    if len(s)==n/2:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Failing test case input:
6
cc^`c`

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
n=int(input())
s=list(input())
if n%2!=0:
    print("No")
else:
    d=s[:int(n/2)]
    f=s
    del f[0:len(d)]
    if d==f:
        print("Yes")
    else:
        print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s=input()


if n%2!=0:
    print('NO')
else:

    if s[:int(n/2)] == s[int(n/2):]:
        print('YES')
    else:
        print('NO')

Failing test case input:
6
edefaa

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = int(input())
s=input()


if n%2!=0:
    print('No')
else:

    if s[:int(n/2)] == s[int(n/2):]:
        print('Yes')
    else:
        print('No')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
s = int(input())

n = list(map(str,input()))

ans = int(0)

S = int(s/2)

for i in range(S):
  if n[i] == n[S+i]:
    ans += 1
    
if ans == S:
  print('Yes')
else:
  print('No')

Failing test case input:
1
}

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s = int(input())

n = list(map(str,input()))

ans = int(0)
D = int(s%2)
S = int(s/2)

for i in range(S):
  if n[i] == n[S+i]:
    ans += 1
    
if ans == S and D != 1:
  print('Yes')
else:
  print('No')
Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()

if (N % 2 == 0):
    c = int(N / 2)

    n = 0
    for x in range(c):
        if S[x] == S[x + c]:
            n += 1 

    if n == c:
        print('YES')  
    else: 
        print('NO')
        
else:
    print('NO')

Failing test case input:
6
bc]`d`

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N = int(input())
S = input()

if (N % 2 == 0):
    c = int(N / 2)

    n = 0
    for x in range(c):
        if S[x] == S[x + c]:
            n += 1 

    if n == c:
        print('Yes')  
    else: 
        print('No')
        
else:
    print('No')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A = input()
AA = A[0:int(len(A)/2)]
BB = A[int(len(A)/2):]
if AA == BB:
    print('Yes')
else:
    print('No')

Failing test case input:
6
cbacba

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = int(input())
A = input()
AA = A[0:int(N/2)]
if A == (AA+AA):
    print('Yes')
else:
    print('No')

Problem: p02860
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
s = input()

if n % 2 != 0:
  print('No')
else:
  if s[:n-1] == s[n:]:
    print('Yes')
  else:
    print('No')


Failing test case input:
6
cbacba

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = int(input())
s = input()

if n % 2 != 0:
  print('No')
else:
  if s[:int((n/2))] == s[int((n/2)):]:
    print('Yes')
  else:
    print('No')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
S=list(input())

if N%2!=0:
  print("No")

if S[:int(N/2)]==S[int(N/2):]:
  print("Yes")
else:
  print("No")

Failing test case input:
1


Expected output:
No


Actual output:
No
No


Fixed submission (verdict: Accepted):
N=int(input())
S=list(input())

if S[:int(N/2)]==S[int(N/2):]:
  print("Yes")
else:
  print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()

if N % 2 != 0:
    print("No")
else:
    first = S[:int(N/2)]
    second = S[int(N/2):]
    print(first)
    print(second)

    if first == second:
        print("Yes")
    else:
        print("No")


Failing test case input:
6
`ccabc

Expected output:
No


Actual output:
`cc
abc
No


Fixed submission (verdict: Accepted):
N = int(input())
S = input()

if N % 2 != 0:
    print("No")
else:
    first = S[:int(N/2)]
    second = S[int(N/2):]

    if first == second:
        print("Yes")
    else:
        print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
s=str(input())
if n%2==1:
  print("No")
else:
  s1=s[0:int(n/2):1]
  s2=s[int(n/2):n:1]
  print(s1,s2)
  if s1==s2: 
    print("Yes")
  else:
    print("No")

Failing test case input:
6
cc^_c`

Expected output:
No


Actual output:
cc^ _c`
No


Fixed submission (verdict: Accepted):
n=int(input())
s=str(input())
if n%2==1:
  print("No")
else:
  s1=s[0:int(n/2):1]
  s2=s[int(n/2):n:1]

  if s1==s2: 
    print("Yes")
  else:
    print("No")
Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = input()

a = s[0:int(n/2)]
b = s[int(n/2):]

print(a,b)

if n % 2 != 0 or n != len(s):
    print("No")
elif a == b:
    print("Yes")
else:
    print("No")


Failing test case input:
6
dcfafa

Expected output:
No


Actual output:
dcf afa
No


Fixed submission (verdict: Accepted):
n = int(input())
s = input()

a = s[0:int(n/2)]
b = s[int(n/2):]

if n % 2 != 0 or n != len(s):
    print("No")
elif a == b:
    print("Yes")
else:
    print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
s=input()

if n%2!=2:
  print('No')
  exit()
x=int(n/2)
print('Yes') if s[:x]==s[x:] else print ('No')

Failing test case input:
6
abcabc

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
n=int(input())
s=input()

if n%2!=0:
  print('No')
  exit()
x=int(n/2)
print('Yes') if s[:x]==s[x:] else print ('No')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()
n = int(N/2) - 1
if len(S) % 2 == 1:
  print('No')
else:
  for i in range(n):
    if S[i] == S[i + int(n)]:
      print('Yes')
      exit(0)
  print('No')

Failing test case input:
6
c^cacc

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
S = input()
if N%2 == 1:
  print('No')
else:
  for i in range(N
    if S[i] != S[N
      print('No')
      exit(0)
  print('Yes')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()

is_even = N % 2 == 0
S1 = S[0:int(len(S) / 2)]
S2 = S[int(len(S) / 2):]

answer = True if is_even and S1 == S2 else False

print(answer)


Failing test case input:
6
edfafa

Expected output:
No


Actual output:
False


Fixed submission (verdict: Accepted):
N = int(input())
S = input()

is_even = N % 2 == 0
S1 = S[0:int(len(S) / 2)]
S2 = S[int(len(S) / 2):]

answer = 'Yes' if is_even and S1 == S2 else 'No'

print(answer)

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = str(input())

cnt=0
if N%2==1:
    print('No')
else:
    for i in range(int(N/2)):
        if S[i]==S[int(N/2)+i]:
            cnt+=1
        else:
            print('No')
            break
if cnt==int(N/2):
    print('Yes')

Failing test case input:
1


Expected output:
No


Actual output:
No
Yes


Fixed submission (verdict: Accepted):
N = int(input())
S = str(input())

cnt=0
if N%2==1:
    print('No')
else:
    for i in range(int(N/2)):
        if S[i]==S[int(N/2)+i]:
            cnt+=1
        else:
            print('No')
            break
    if cnt==int(N/2):
        print('Yes')
Problem: p02860
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
str = input()
if len(str) % 2 != 0:
  print("No")
elif str[:int(len(str)/2)] != str[int(len(str)/2) + 1:]:
  print("No")
else:
  print("Yes")

Failing test case input:
6
cbacba

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = int(input())
str = input()
if len(str) % 2 != 0:
  print("No")
elif str[:int(len(str)/2)] != str[int(len(str)/2):]:
  print("No")
else:
  print("Yes")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()

if (N % 2) == 1:
    ans = "no"
else:
    n = int(N/2)
    s1 = S[0:n]
    s2 = S[-n:]
    if s1 == s2:
        ans="Yes"
    else:
        ans ="No"
print(ans)

Failing test case input:
1


Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
N = int(input())
S = input()

if (N % 2) == 1:
    ans = "No"
else:
    n = int(N/2)
    s1 = S[0:n]
    s2 = S[-n:]
    if s1 == s2:
        ans="Yes"
    else:
        ans ="No"
print(ans)

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
data_len = int(input())
data = input()
if data[0:int(data_len / 2)] == data[int(data_len / 2):data_len]:
    print("true")
else:
    print("false")

Failing test case input:
6
cdabca

Expected output:
No


Actual output:
false


Fixed submission (verdict: Accepted):
data_len = int(input())
data = input()
if data[0:int(data_len / 2)] == data[int(data_len / 2):data_len]:
    print("Yes")
else:
    print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
m=input()
s=int(n/2)

if n%2!=0:
    print("No")

if m[:int(n/2)] == m[int(n/2):]:
    print("Yes")
else:
    print("No")

Failing test case input:
1


Expected output:
No


Actual output:
No
No


Fixed submission (verdict: Accepted):
n=int(input())
m=input()


if n%2!=0:
    print("No")

elif m[:int(n/2)] == m[int(n/2):]:
    print("Yes")
else:
    print("No")

Problem: p02860
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
import sys
n = int(sys.stdin.readline())
s = sys.stdin.readline()
l = int(len(s) /2)
if s[:l] == s[l:]:
    print('Yes')
else:
    print('No')

Failing test case input:
6
abcabc

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
import sys

n = int(input())

s = input()
l = int(len(s) /2)
if s[:l] == s[l:]:
    print('Yes')
else:
    print('No')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()

if N % 2 == 0 and S[:N] == S[N:]:
    print("Yes")
else:
    print("No")

Failing test case input:
6
cbacba

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = int(input())
S = input()

if N % 2 == 0 and S[:N
    print("Yes")
else:
    print("No")
Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())

s = input()
k=""
if n%2 == 0:
    i =int( n/2)
    print(i)
    for j in range(0,i):
        k += s[j]
    if s == k+k:
        print('Yes')
    else:
        print('No')

else:
    print('No')

Failing test case input:
6
bc]`c`

Expected output:
No


Actual output:
3
No


Fixed submission (verdict: Accepted):
n = int(input())

s = input()
k=""
if n%2 == 0:
    i =int( n/2)
    for j in range(0,i):
        k += s[j]
    if s == k+k:
        print('Yes')
    else:
        print('No')

else:
    print('No')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
N = int(N)
S = input()
S = S.split()
S = list(S)

if N % 2 == 0:
  H = int(N/2)
  if S[0][:H] == S[0][H:]:
    print("YES")
  else:
    print("NO")
  
else:
  print("NO")

Failing test case input:
6
bafjdg

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N = input()
N = int(N)
S = input()
S = S.split()
S = list(S)

if N % 2 == 0:
  H = int(N/2)
  if S[0][:H] == S[0][H:]:
    print("Yes")
  else:
    print("No")
  
else:
  print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
s=list(input())
if n%2==0:
    s=set(s)
    if len(s)==n/2:
        print("Yes")
    else:
        if len(s)==1:
            print(s)
        else:
            print("No")
else:
    print("No")

Failing test case input:
6
c^cacc

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
n=int(input())
s=list(input())
if n%2!=0:
    print("No")
else:
    d=s[:int(n/2)]
    f=s
    del f[0:len(d)]
    if d==f:
        print("Yes")
    else:
        print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()

if(S[:int(N / 2)] == S[int(N / 2):]):
    print("YES")
else:
    print("NO")

Failing test case input:
6
_dcacc

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N = int(input())
S = input()
 
if(S[:int(N / 2)] == S[int(N / 2):]):
    print("Yes")
else:
    print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()
if N%2 == 1:
	print("NO")
else:
  if S[: int(N/2)] == S[int(N/2):]:
    print("YES")
  else:
    print("NO")

Failing test case input:
6
daaced

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N = int(input())
S = input()
if N%2 == 1:
  print("No")
else:
  if S[0: N
    print("Yes")
  else:
    print("No")
Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def judge1(Num,a):
    if Num%2 == 0:
        alpha = list(a)
        j = int(Num/2 - 1)
        b = []
        for i in range(j+1):
            b.append(alpha[i])
        c = b + b
        if alpha == c:
            print("yes")
        else:
            print("No")
    else:
        print("No")

N = int(input())
S = input()

judge1(N,S)

Failing test case input:
6
abcabc

Expected output:
Yes

Actual output:
yes


Fixed submission (verdict: Accepted):
def judge(N,str):
    a = list(str)
    b = []
    c = []
    if N%2 == 0:
        for k in range(int(N/2)):
            b.append(a[k])
            c.append(a[k+int(N/2)])
        if b == c:
            print("Yes")
        else:
            print("No")
    else:
        print("No")
N = int(input())
S = input()
judge(N,S)

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()
m = N - 1
n = int(N / 2)
n0 = n - 1
if len(S) % 2 == 1:
  print('No')
else:
  for i in range(n):
    if S[i] == S[i + n0]:
      print('Yes')
      exit(0)
  print('No')

Failing test case input:
6
deacad

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
S = input()
if N%2 == 1:
  print('No')
else:
  for i in range(N
    if S[i] != S[N
      print('No')
      exit(0)
  print('Yes')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
s=str(input())
if n%2==1:
  print("No")
else:
  s1=s[0:int(n/2):1]
  s2=s[int(n/2)+1:n:1]
  if s1==s2: 
    print("Yes")
  else:
    print("No")

Failing test case input:
6
cbacba

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n=int(input())
s=str(input())
if n%2==1:
  print("No")
else:
  s1=s[0:int(n/2):1]
  s2=s[int(n/2):n:1]

  if s1==s2: 
    print("Yes")
  else:
    print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

n=int(input())
s=input()
ans="No"
if n%2==1:
    print(ans)
else:
    x=int(n/2)
    if s[0:x]==s[x:]:
        ans="Yes"
print(ans)

Failing test case input:
1


Expected output:
No


Actual output:
No
No


Fixed submission (verdict: Accepted):

n=int(input())
s=input()
ans="No"
if n%2!=1:
    x=int(n/2)
    if s[0:x]==s[x:]:
        ans="Yes"
print(ans)

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = input()

if s[:n-1] == s[n-1:]:
    print("Yes")
else:
    print("No")

Failing test case input:
6
abcabc

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
n = int(input())
s = input()


if s[:n
    print("Yes")
else:
    print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input ())
s = input()

if s[:int(n/2)] == s[int(n/2):]:
    print('yes')
else:
    print('no')

Failing test case input:
1
|

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
n = int(input())
s = input()
if s[:int(n/2)] == s[int(n/2):]:
    print('Yes')
else:
    print('No')
Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input()) 
s = input() 
b = int(N/2)

if N % 2 == 1:
  print('no')
else:
  s1 = s[0:b]
  s2 = s[b:N]


  if s1 == s2:
    print('yes')
  else:
    print('no')

Failing test case input:
1


Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
N = int(input()) 
s = input() 
b = int(N/2)


if N % 2 == 0:
  s1 = s[0:b]
  s2 = s[b:N]

  if s1 == s2:
    print('Yes')
  else:
    print('No')
else:
  print('No')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = input()
 
if(s[:(int)(n/2-1)] == s[(int)(n/2):]):
  print("Yes")
else:
  print("No")


Failing test case input:
6
abcabc

Expected output:
Yes

Actual output:
No


Fixed submission (verdict: Accepted):
n = int(input())
s = input()

if n % 2 == 1:
  print("No")
elif s[:(int)(n/2)] == s[(int)(n/2):]:
  print("Yes")
else:
  print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()
if N%2 != 0:
  print("No")
elif S[0:int(N/2)-1] == S[int(N/2)+1:]:
  print("Yes")
else:
  print("No")

Failing test case input:
6
cbacba

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = int(input())
S = input()
if N%2 != 0:
  print("No")
elif S[:int(N/2)] == S[int(N/2):]:
  print("Yes")
else:
  print("No")

Problem: p02860
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
s=input()
r=''
for i in s:
    r+=i
    if(r*2==s):
        print("Yes")
        break
else:
    print("No")


Failing test case input:
6
cbacba

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n=int(input())
s=input()
r=''
for i in s:
    r+=i
    if(r*2==s):
        print("Yes")
        break
else:
    print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l = int(input())
words = input()

if l % 2 != 0:
    exit()

m = int(len(words) /2)
print(m)
first = words[0:m]
last = words[m:]
if first == last:
    print('Yes')
else:
    print('No')


Failing test case input:
6
cad^bc

Expected output:
No


Actual output:
3
No


Fixed submission (verdict: Accepted):
l = int(input())
words = input()

if l % 2 != 0:
    print('No')
    exit()

m = int(len(words) /2)
first = words[0:m]
last = words[m:]
if first == last:
    print('Yes')
else:
    print('No')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
S = input()
if len(S)%2 == 1:
    print('No')
    exit()

if S[0:int(len(S)/2)] == S[int(len(S)/2):len(S)]:
    print('Yes')
else:
    print('No')


Failing test case input:
6
cbacba

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = int(input())
S = input()
if len(S)%2 == 1:
    print('No')
    exit()

if S[0:int(len(S)/2)] == S[int(len(S)/2):len(S)]:
    print('Yes')
else:
    print('No')
Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = input()
a = []
b = []
count = 1
for i in s:
  if count > (n/2):
    a.append(i)
  else:
    b.append(i)
  count += 1
print(a)
if a == b:
  print("Yes")
else:
  print("No")

Failing test case input:
6
_dcacc

Expected output:
No


Actual output:
['a', 'c', 'c']
No


Fixed submission (verdict: Accepted):
n = int(input())
s = input()
a = []
b = []
count = 1
for i in s:
  if count > (n/2):
    a.append(i)
  else:
    b.append(i)
  count += 1
if a == b:
  print("Yes")
else:
  print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()

if N%2 == 1:
  print('No')
elif S[1:int(N/2)] == S[int(N/2+1):N]:
  print('Yes')
else:
  print('No')
    

Failing test case input:
6
dcabca

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())
S = input()

if N%2 != 0:
  print('No')
elif S[0:int(N/2)] == S[int(N/2):int(N+1)]:
  print('Yes')
else:
  print('No')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
S=input()
ans="NO"
if(N<2):
  print(ans)
else:
  middle = N/2
  T=S[0:int(N/2)]
  T2=S[int(N/2):]
  if(T==T2):
    ans ="YES"
    print(ans)

Failing test case input:
6
d^]c`c

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
N=int(input())
S=input()
ans="No"
if(N<2):
  ans="No"
elif(N%2!=0):
  ans="No"
else:
  T=S[0:int(N/2)]
  if(S==T+T):
    ans ="Yes"
print(ans)

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = list(input())

half = int(N / 2)

for s in S :
    if half < N :
        half = half + 1

    if s is S[half - 1] :
        pass
    else :
        print("No")
        break

    if N == half:
        print("Yes")
        break

Failing test case input:
1


Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
FLAG = False

N = int(input())
S = list(input())

if N % 2 == 1 :
    FLAG = True
    print("No")

half = int(N / 2)

if FLAG == False :
    for s in S :
        if half < N :
            half = half + 1

        if s is S[half - 1] :
            pass
        else :
            print("No")
            break

        if N == half:
            print("Yes")
            break

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input ())
s = input()

if s[:int(n/2)] == s[int(n/2):]:
    print("yes")
else:
    print("no")

Failing test case input:
6
edacad

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
n = int(input())
s = input()
if s[:int(n/2)] == s[int(n/2):]:
    print('Yes')
else:
    print('No')
Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
s=input()
total=0

if n%2==0:
  
  for i in range(int(n/2)):   
    if s[i]==s[i+int(n/2)]:
      total+=1
  
  if total==int(n/2):
    print('Yes')
  else:
    print('N0')

else:
  print('No')

Failing test case input:
6
edabad

Expected output:
No


Actual output:
N0


Fixed submission (verdict: Accepted):
n=int(input())
s=input()
total=0

if n%2==0:
  if s[0:int(n/2)]==s[int(n/2):]:
    print('Yes')
  else:
    print('No')

else:
  print('No')

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
a = input()
if a[0:int(n/2)-1]==a[int(n/2):n-1]:
	print("Yes")
else:
	print("No")

Failing test case input:
1
~

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
n = int(input())
a = input()
if a[0:int(n/2)]==a[int(n/2):n]:
	print("Yes")
else:
	print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
s = input()
 
if n%2 == 1:
  print("No")
  exit
 
slise = (n/2)
a = s[:int(slise)]
b = s[int(slise):]
 
if a==b:
  print("Yes")
else:
  print("No")

Failing test case input:
1
}

Expected output:
No


Actual output:
No
No


Fixed submission (verdict: Accepted):
import sys

n = int(input())
s = input()
 
if n%2 == 1:
  print("No")
  sys.exit()
 
slise = (n/2)
a = s[:int(slise)]
b = s[int(slise):]
 
if a==b:
  print("Yes")
else:
  print("No")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
S = input()

if N % 2 == 0 and S[0:round(N / 2)] == S[round(N / 2) + 1:N - 1]:
    print('Yes')
else:
    print('No')

Failing test case input:
6
cbacba

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = int(input())
S = input()

if N % 2 == 0 and S[0:round(N / 2)] == S[round(N / 2):N]:
    print('Yes')
else:
    print('No')

Problem: p02860
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n=int(input())
s=input()
if len(s)%2!=0:
    print("No")
    exit()
a=0
for i in range(1,int((len(s)+1)/2)):
    if s[i]!=s[int(len(s)/2)+i]:
        a=1
if a==0:
    print("Yes")
else:
    print("No")


Failing test case input:
6
dcabca

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
n=int(input())
s=input()
if n%2!=0:
    print("No")
    exit()
a=0
for i in range(int((n+1)/2)):
    if s[i]!=s[int((n+1)/2)+i]:
        print("No")
        exit()
print("Yes")

Problem: p02860
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input().strip())
if N%2!=0:
  print("No")

S=input().strip()

if S[:int(N/2)] == S[int(N/2):]:
  print("Yes")
else:
  print("No")

Failing test case input:
1
~

Expected output:
No


Actual output:
No
No


Fixed submission (verdict: Accepted):
N=int(input().strip())
if N%2!=0:
	print("No")
else:
  S=input().strip()
  if S[:int(N/2)] == S[int(N/2):]:
    print("Yes")
  else:
    print("No")