Problem:


Score : 200 points

Problem Statement

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.

Constraints

1 \leq N \leq 100

S consists of lowercase English letters.

|S| = N

Input

Input is given from Standard Input in the following format:

N
S

Output

If S is a concatenation of two copies of some string, print Yes; otherwise, print No.

Sample Input 1

6
abcabc

Sample Output 1

Yes

Let T =  abc, and S = T + T.

Sample Input 2

6
abcadc

Sample Output 2

No

Sample Input 3

1
z

Sample Output 3

No



Sample input:
6
abcabc


Sample output:
Yes

Submission status: Runtime Error

Solution code:
n=int(input())
s=str(input())
if(n%2==0):
  r=s[:(n/2)]
  t=s[(n/2):]
  if(r==t):
    print("Yes")
  else:
    print("No")
    
else:
  print("No")

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()

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

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()

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

Submission status: Runtime Error

Solution code:
import sys
n = int(input())
s = input()
a = int(len(s)/2)

if(len(a)%2 == 1):
  print("No")
  sys.exit()

for i in range(a):
  if(s[i] != s[i + a]):
    print("No")
    sys.exit()
    
print("Yes")

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
if type(n/2)=='int':
    if s[0:n/2]=s[n/2:n]:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
if n % 2:
  pirnt("No")
  exit()
half = s[0:n // 2]
print("Yes" if s == half + half else "No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()

if n % 2:
  pirnt("No")
  exit()
  
half = s[0:n // 2]
print("Yes" if s == half + half else "No")

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()

if n % 2:
  pirnt("No")
  exit()
  
half=s[0:n//2]
print("Yes" if s==half+half else "No")

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()

if n % 2:
  print("No")
  exit()

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

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
if n % 2:
  pirnt("No")
  exit()
  
half=n/2
print("Yes" if s[0:half]+s[0:half]==s else "No")

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
if n % 2:
  pirnt("No")
  exit()
  
half=n/2
print("Yes" if s[half:]+s[half:]==s else "No")

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()

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

half = n / 2

ans = "Yes" if s[:half] == s[half:] else "No"
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys


def main():
    N = int(input())
    S = input()
    if N % 2 == 1:
        print("No")
        sys.exit()
    n = N / 2
    yesno = "Yes" if S[:n] == S[n:] else "No"
    print(yesno)


if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
def main():
    N = int(input())
    S = input()
    if N % 2 == 1:
        print("No")
        quit()
    n = N / 2
    yesno = "Yes" if S[:n] == S[n:] else "No"
    print(yesno)


if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
def main():
    N = int(input())
    S = input()
    if N % 2 == 1:
        print("No")
        quit()
    yesno = "Yes" if S[:N / 2] == S[N / 2:] else "No"
    print(yesno)


if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
def main():
    N = int(input())
    S = input()
    if N % 2 == 0:
        print("No")
        quit()
    yesno = "Yes" if S[:N / 2] == S[N / 2:] else "No"
    print(yesno)


if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
args=input()

n=int(args[0])
s=args[1]

if n % 2 == 1:
  print('No')
else:
  half=n/2
  s1=s[half:]
  s2=s[:half]
  print('No' if s1!=s2 else 'Yes')

Submission status: Runtime Error

Solution code:
args=input().split()

n=int(args[0])
s=args[1]

if n % 2 == 1:
  print('No')
else:
  half=n/2
  s1=s[half:]
  s2=s[:half]
  print('No' if s1!=s2 else 'Yes')

Submission status: Runtime Error

Solution code:
args=input().split()
n=int(args[0])
s=args[1]

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

Submission status: Runtime Error

Solution code:
args=input()
n=int(args[0])
s=args[1]
print('No' if n%2==1 else 'Yes')

Submission status: Runtime Error

Solution code:
args=input()
a=args[0]
b=args[1]
print('Yes')

Submission status: Runtime Error

Solution code:
a,b=input().split()
print('Yes')

Submission status: Runtime Error

Solution code:
n,s=input().split()

Submission status: Runtime Error

Solution code:
args=input().split()
n=int(args[0])
s=args[1]
print('No' if s[n:]!=s[:n] else 'Yes')

Submission status: Runtime Error

Solution code:
a,b=input().split()
n=int(a)/2
s=b
if n % 2:
  print('No')
elif s[n:]!=s[:n]:
  print('No')
else:
  print('Yes')

Submission status: Runtime Error

Solution code:
a,b=input().split('\n')
print('Yes')

Submission status: Runtime Error

Solution code:
a,b=input().split('\n')

Submission status: Runtime Error

Solution code:
a,b = input().split('\n')
n=int(a)
s=b

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

Submission status: Runtime Error

Solution code:
a,b=input().split('\n')
n=int(a/2)
s=b
print('Yes' if s[:n]==s[n:] else 'No')

Submission status: Runtime Error

Solution code:
a, b = input()
n=int(a/2)
s=b
s1=s[n:]
s2=s[:n]
bl=s1==s2
print('Yes' if bl else 'No')

Submission status: Runtime Error

Solution code:
a,b=input()
n=int(a)
s=b
half=int(n/2)
print(s[:half]==s[half:])

Submission status: Runtime Error

Solution code:
N=int(input())
S=input()
if(N%2==1):
  print('No')
else:
  m=N/2
  a=S[:m]
  b=S[m:]
  if(a==b):
    print('Yes')
  else:
    print('No')

Submission status: Runtime Error

Solution code:
N=int(input())
S=input()
m=N/2
a=S[:m]
b=S[m:]
if(a==b):
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
N=int(input())
S=input()
if(N%2==1):
  print('No')
else:
  m=N/2
  a=s[0:m]
  b=s[m:]
  if(a==b):
    print('Yes')
  else:
    print('No')

Submission status: Runtime Error

Solution code:
# input
N = int(input())
S = input()

# check
if N < 2 or N % 2 != 0:
    print("No")

if N == 2:
    right = S[0]
    left = S[1]
else:
    c = N // 2
    right = S[0:c]
    left = S[c:]

print(f"{right} {left}")

if right == left:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
N=int(input())
S=input()
print("No") if N%2!==0  else print("No") if S[:(N/2)+1:] != S[(N/2)+1::]
      else print("Yes")

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()

l = len(S)
if l % 2 == 1:
  print("No")
else:
  if S[0:N/2] == S[N/2+1:N]:
    print("Yes")
  else:
    print("No")

Submission status: Runtime Error

Solution code:
def main():
    _len = int(input())
    _str = input()

    if _len % 2: 
        print("No")
        return

    print(_len/2)
    a, b = _str[:_len/2], _str[_len/2:]

    print("Yes" if a == b else "No")


if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
n = int(input())
s = str(input())
if (n % 2 == 1):
  print("No")
else:
  if (s[:n/2+1] = s[n/2+1:]):
    print("Yes")
  else:
    print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
s = str(input())
if (s[:n/2] = s[n/2:]):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = str(input())
if (s[:n] * 2  = s):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = str(input())
if (s[:n] = s[n:]):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
r = int(input())
s = input()
 
if i < 2:
  return

i = int(r/2)
before = s[i:]
after = s[:i]
 
if before == after:
	print('Yes')
else:
  	print('No')

Submission status: Runtime Error

Solution code:
n=input()
s=raw_input().split()
t=1/2(s)
if s=t+t:
  print "Yes"
else:
  print "No"

Submission status: Runtime Error

Solution code:
n=input()
s=raw_input().split()
t=1/2s
if s=t+t:
  print "Yes"
else:
  print "No"

Submission status: Runtime Error

Solution code:
n = int(input())

if n%2 == 1:
    print("No")
else:
    s = list(input())
    s1 = s[:n//2].copy()
    s2 = s[n//2:]copy()
    if s1 == s2:
        print("Yes")
    else:
        print("No")

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-

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

if instance(N / 2, int):
    T = S[0, N / 2 + 1]
    if T + T == S:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Submission status: Runtime Error

Solution code:
N,S=int(input()),input()
a,b='',''
if N%2==0:
    for i in range(int(N/2)):
        a = a+S[i]
        b = S[len(S)-(i+1)]+b
    print('Yes' if a==b else: 'No')
else:
    print(No)

Submission status: Runtime Error

Solution code:
N,S=int(input()),input()
a,b='',''
if N%2==0:
    for i in range(int(N/2)):
        a = a+S[i]
        b = S[len(S)-1]+b
    print('Yes' if a==b else: 'No')
else:
    print(No)

Submission status: Runtime Error

Solution code:
N = input()
S = input()

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

Submission status: Runtime Error

Solution code:
N = int(inoput())
S = input()

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

Submission status: Runtime Error

Solution code:
n = int(input())
s = input().strip()

head = s[0:(n/2)]
tail = s[(n/2):]

result = 'No'
if head == tail:
    result = 'Yes'

print(result)

Submission status: Runtime Error

Solution code:
n = int(input());
s = input();

if n % 2 !== 0:
  print("No")
else:
  t = s[int(n/2) - 1]
  if t * 2 == s:
    print("Yes")
  else:
    print("No");

Submission status: Runtime Error

Solution code:
n = int(input());
s = input();

if n % 2 !== 0:
  print("No")
else:
  t = s[n/2 - 1]
  if t * 2 == s:
    print("Yes")
  else:
    print("No");

Submission status: Runtime Error

Solution code:
str_len,input_str = map(str, str(input()).split('\n'))
half = int(int(str_len)/2)
if(str_len % 2 == 0 and input_str[0:half] == input_str[half:str_len]):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
str_len,input_str = input().split('\n')
half = int(int(str_len)/2)
if(str_len % 2 == 0 and input_str[0:half] == input_str[half:str_len]):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
str_len,input_str = map(str, input().split())
half = int(int(str_len)/2)
if(str_len % 2 == 0 and input_str[0:half] == input_str[half:str_len]):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
input_str = input()
str_len = len(input_str)
if(str_len % 2 == 0 and input_str[:str_len/2] == input_str[str_len/2:str_len-1]):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
input_str = input()
str_len = len(input_str)
if(str_len % 2 == 0 && input_str[:str_len/2] == input_str[str_len/2:str_len-1]):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
input_str = input()
str_len = len(input_str)
if(len % 2 == 0 && input_str[:str_len/2] == input_str[str_len/2:str_len-1]):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
a=int(input())
b=input()
if b[0:a//2-1]==[a//2:a-1]:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
s = str(input())
if n % 2 !=0:
  print('No')
else:
  if s[0:n/2-1] == s[n/2:n-1]:
    print('Yes')
  else:
    print('No')

Submission status: Runtime Error

Solution code:
n=int(input())
s=str(input())
if s[:n//2]==s[n//2:]:
  print("Yes")
 else:
  print("No")

Submission status: Runtime Error

Solution code:
a = int(input())
b = str(input())
c = a/2
if b[0:(c-1)] == b[c:(a-1)]:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
a = int(input())
b = str(input())
if b[0:a/2-1] == b[a/2:a]:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
a = int(input())
b = str(input())
if b[0:a/2] == b[a/2:a]:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
a = int(input())
b = list(map(str,input().split()))
c = b[0],b[1],b[2]
d = b[3],b[4],b[5]
if c == d:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
if n==1:
    print("No")
    exit()

if n % 2 == 0:
    n //= 2
else:
    n = n // 2 + 1
s2 = s[n:]
for i in range(n):
    if s[i] != s2[i]:
        print("No")
        exit()
print("Yes")

Submission status: Runtime Error

Solution code:
import sys
n = int(sys.stdin.readline())
s = sys.stdin.readline().strip()
if not n % 2:
  if s[0:n/2] == s[n/2:]:
    print('Yes')
  else:
    print('No')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
t = n/2
for i in range(n-1):
  if s[:int(n/2)]==s[int(n/2):]:
	  ans = ('Yes')
  else:
	  ans = ('No')
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
t = n/2
for i in range(n-1):
  if s[:int(n/2)]==s[int(n/2):]:　#コロンで分断
	  ans = ('Yes')
  else:
	  ans = ('No')
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()

ans = 'Yes'

for i in ((n // 2) - 1):
    if s[i] != s[i + (n // 2)]:
        ans = 'No'

print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()

ans = 'Yes'

for i in (n // 2):
    if s[i] != s[i + (n // 2)]:
        ans = 'No'

print(ans)

Submission status: Runtime Error

Solution code:
I = [input() for i in range(2)]
if I(0)%2 = 1 :
    A = 'No' 
else:
    H1 = I(1)[:I(0)/2]
    H2 = I(1)[I(0)/2+1:]
    if  H1 = H2 :
        A = 'Yes'
    else:
        A = 'No'

print(A)

Submission status: Runtime Error

Solution code:
I = list(map(int,input().split()))
if I(0)%2 = 1 :
    A = 'No' 
else:
    H＝I(1)[:I 0)/2]
    if I(1) = H + H :
        A = 'Yes'
    else:
        A = 'No'

print(A)

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
m=n//2
t=s[:m]
print('Yes' if s=t+t else 'No')

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
print("Yes" if N[0:N/2-1] == N[N/2+1:] else "No")

Submission status: Runtime Error

Solution code:
import math
N = int(input())
S = str(input())

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

n = (N/2)
j = True


for i in range(n):
    if S[i] != S[i + n]:
        j = False

if j:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
N = int(input())
S = str(input())

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

n = (N/2)
j = True


for i in range(n):
    if S[i] != S[i + n]:
        j = False

if j:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
import math
N = int(input())
S = str(input())

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

n = math.ceil(N/2)
j = True

if N%2 == 0:
    for i in range(n):
    if S[i] != S[i + n]:
        j = False
else:
    for i in range(n-1):
    if S[i] != S[i + n]:
        j = False

if j:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
import math
N = int(input())
S = str(input())

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

n = math.ceil(N/2)
j = True

try:
    for i in range(n):
    if S[i] != S[i + n]:
        j = False
except:
    break

if j:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
import math
N = int(input())
S = str(input())

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

n = math.ceil(N/2)
j = True

for i in range(n):
    if S[i] != S[i + n]:
        j = False

if j:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()

if N % 2 == 0:
    num = int(N/2 + 1）
    string = S[:num]
    strstr = string + string
    if S == strstr:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()

if N % 2 == 0:
  str = S[:N/2+1]
  strstr = str + str
  if S == str:
      print("Yes")
  else:
      print("No")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()

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

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()

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

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
if n%2==1:
  print("No")
  exit()
for i in range((n//2)-1):
  if a[i]!=a[-i-1]:
    print("No")
    exit()
print("Yes")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
dum1,dum2 = divmod(n,2)
flag = "ok"
if dum2 != 0:
  print("No")
else:
  for i in range(dum1):
    if s[i] != s[i+3]:
      flag = "ng"
      break
  if flag == "ng":
    print("No")
  else:
    print("Yes")

Submission status: Runtime Error

Solution code:
N=int(input())
S=str(input())
if N%2!=0:
  print('No')
elif S[0:N/2-1]==S[N/2:N-1]:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
if n % 2 == 0:
  end = n//
  start = end
else:
  end = n//2+1
  start = n//2
if s[:end] == s[start:]:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n=int(input())
a=input()

if n%2==1:
  print("No")
else:
  count=0
  m=n//2
  for i in range(m):
    if a[i]==a[i+m]:
      count+=1
    else:
      count=0

if count==m:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
 
if n%2 == 1:
  print("No")
  return
 
slise = (n/2)
a = s[:int(slise)]
b = s[int(slise):]
 
if a==b:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
 
if n%2 == 1:
  print("No")

slise = (n/2)*1
a = s[:int(start)]
b = s[int(slise):]

if a==b:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()

if n%2 ==1:
  print("No")

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

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()

a = s[n/2:]
b = s[:n/2]

if a==b:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
N=int(input())
if N%2==1:
  print(No)
  #偶数なら不適
else:
  s=input()
  b=N//2
  s=0
  for i in range (0,b):
    if s[i]==s[i+b]:
      s=s
    else:
      s=s+1
  if s==0:
    print(Yes)
  else:
    print(No)

Submission status: Runtime Error

Solution code:
n=input()
if n%2!=0:
  print("No")
else:
  if n[:n//2]==n[n//2:]:
    print("Yes")
  else:
    print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
if N%" == 1:
	print("NO")
else:
  if (S[: N//2] == S[N//2:]):
    print("YES")
  else:
    print("NO")

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
if N%2 == 1:
  print("NO")
if (S[0: N/2 -1] == S[N/2: N-1 ]):
  print("YES")
else:
  print("NO")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
S1 = S[:N / 2]
S2 = S[N / 2:]
if N > 1 or (N % 2) != 0 or S1 != S2:
    print("No")
else:
    print("Yes")

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
if N%2 == 0:
  if S[:N//2+1] == [N//2:]:
    print("Yes")
  else:
    print("No")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
l=len(s)
s2=s.pop(l//2)
print("Yes" if s==s2 else "No")

Submission status: Runtime Error

Solution code:
S = input()

if N % 2 != 0:
    print("No")
else:
    for i in range(int(N/2)):
        if S[i] != S[i+int(N/2)]:
            print("No")
            exit()
    print("Yes")

Submission status: Runtime Error

Solution code:
 = int(input())
S = input()
if N % 2 != 0:
    print('No')
else:
    if S[N // 2:] == S[:N // 2]:
        print('Yes')
    else:
        print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()

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

Submission status: Runtime Error

Solution code:
s = input()
if len(s) %2 = 0:
  for i in range (0,len(s)/2):
    t = []
    t.append("s[i]")
  for j in range (len(s)/2 + 1, len(s)):
    T = []
    T.append("s[j]")
  if t == T:
    print('Yes')
  else :
    print('No')

Submission status: Runtime Error

Solution code:
N=int(input())
S=input()
if N%2==0:
  if S[:N/2]==S[N/2:]:
    print("Yes")
    exit()
print("No")

Submission status: Runtime Error

Solution code:
N=int(input())
S=input()
if N%2==1:
  print("No")
else:
  flag=0
  for i in range(len(S)):
    if S[i]!=S[i+(len(S)/2)]:
      flag=1
      break
  if flag==0:
    print("Yes")
  else::
    print("No")

Submission status: Runtime Error

Solution code:
digits = int(input())
str = input()

num = int(digits/2)

str_forward = str[num:]
str_backward = str[:num]


if str_forward == str_backward:
 print("Yes")
else:
 print("No")
~

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N, S = map(string, input().split())
N = int(N)
if N % 2 > 0:
    print('No')
hN = N // 2
if S[:hN] == S[hN:N]:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
import sys
 
if __name__ == '__main__':
  r = int(input())
  a = r.split('\n')
  n = a[0]
  s = a[1]
  print(n)

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()
ans="No"
if n%2==0 and s[:n//2+1]==s[n//2+1]:
    ans="Yes"
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
temp_word = [input() for i in range(n)]
word = str(temp_word)

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

Submission status: Runtime Error

Solution code:
n = int(input())
word = str([input() for i in range(n)])

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

Submission status: Runtime Error

Solution code:
n = int(input())
word = [input() for i in range(n)]

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

Submission status: Runtime Error

Solution code:
n = int(input())
word = [input() for i in range(n)]

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

Submission status: Runtime Error

Solution code:
n = int(input())
s = int(input())
#a = list(map(int,input().split()))

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

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
ans = false
if N % 2 == 0:
  ans = S[:N//2] == S[N//2:]
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
ans = "No"
if n % 2 == 0:
    ans = "Yes"
    for i in range(n / 2):
        if s[i] != s[n / 2 + i]:
            ans = "No"
            break
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()

S1 = substr(S, 0, N)
if S == S1+S1:
    print ('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
N,S = input().split()
 
S1 = S[:int(N)/2]
S2 = S[int(N)/2:]
 
if S1 == S2:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
S = str(input())

S1 = S[:N/2]
S2 = S[N/2:]

if S1 == S2:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
moji = input()
res = 'Yes'
if n % 2 == 1:
    res = 'No'
else:
    for i in range(int(n/2)):
        if moji[i] != moji[int(n/2)+1]:
            res = 'No'
            break
      
print(res)

Submission status: Runtime Error

Solution code:
n = int(input)
moji = input()
res = 'Yes'
if n % 2 == 1:res = 'No'
else:
  for i in range(len(n/2)):
    if moji[i] != moji[n/2+1]:
      res = 'No'
      
print(res)

Submission status: Runtime Error

Solution code:
S,T=input().split()
S=int(S)
print('Yes' if T[:S//2]==T[S//2:] else 'No')

Submission status: Runtime Error

Solution code:
import java.util.Scanner;

class Main {

  static boolean RS(String S, int n) {
    
    if (n%2 == 1) return false;
      
    for(int i = 0; i < n/2; i++)
      if(S.charAt(i) != S.charAt(i+n/2))
        return false;
      
    return true;
  }
  
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    
    int n = stdIn.nextInt();
    String S = stdIn.next();
     
    if(RS(S, n))
      System.out.println("Yes");
    else
      System.out.println("No");
  }
}

Submission status: Runtime Error

Solution code:
import java.util.Scanner;

class Main {

  static boolean RS(String S, int n) {
    
    if (n%2 == 1) return false;
      
    for(int i = 0; i < n/2; i++)
      if(S.charAt(i)) != S.charAt(i+n/2))
        return false;
      
    return true;
  }
  
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    
    int n = stdIn.nextInt();
    String S = stdIn.next();
     
    switch(RS(S, n)) {
     case true: System.out.println("Yes"); break;
     case false: System.out.println("No"); break;
    }
  }
}

Submission status: Runtime Error

Solution code:
import java.util.Scanner;

class Main {

  static boolean RS(String S, int n) {
    
    if (n%2 == 1) return false;
      
    for(int i = 0; i < n/2; i++)
      if(S.charAt(i)) != S.charAt(i+n/2))
        return false;
      
    return true;
  }
  
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    
    int n = stdIn.next();
    String S = stdIn.next();
     
    switch(RS(S, n)) {
     case true: System.out.println("Yes"); break;
     case false: System.out.println("No"); break;
    }
  }
}

Submission status: Runtime Error

Solution code:
n = int(input())
S = input()
b = 0
if n % 2 == 0:
  b = 1
  for i in range(n/2):
    if S[i] != S[i+n/2]:
      b = 0
print("Yes" if b == 1 else "No")

Submission status: Runtime Error

Solution code:
n = int(input())
S = input()
b = 0
if n % 2 == 0:
  b = 1
  for i in range(n/2):
    if S[i] != S[i+n/2]:
      b = 0
print("Yes" if b = 1 else "No")

Submission status: Runtime Error

Solution code:
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')

Submission status: Runtime Error

Solution code:
N = int(input())
S = list(input())
if N // 2 == 1:
    print('No')
elif:
    S[0:N//2] == S[N//2:-1]:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
flag = 1

if n % 2:
    for i in range(n):
        if s[i] != s[n//2 + i]:
            flag = 0
    if flag:
        print('Yes')
    else:
        print('No')
else:
        print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
flag = 1

if n % 2:
    print('No')
else:
    for i in range(n):
        if s[i] != s[n/2 + i]:
            flag = 0
    if flag:
        print('Yes')
    else:
        print('No')

Submission status: Runtime Error

Solution code:
n=int(input())
s=input()

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

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()

if N % 2 != 0:
    print("No")
else:
    a = S[0;N/2]
    b = S[N/2;]
    if a == b:
        print("Yes")
    else:
        print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
if n % 2 !=0:
  print('No')
  sys.exit()
b = int(n/2)
if s[0:b]==s[b:n]:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()

if N % 2 == 1:
  print("No")
else:
  half = N/2
  ans = "Yes"
  for i in range(half):
    if S[i] != S[i+half]:
      ans = "No"
      break
  print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
s = input()
if len(s) % 2 != 0:
  print('No')
else:
  l = len(s) // 2
  if s[:l] == s[l:]:
    print('Yes')
  else:
    pring('No')

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
l = len(N)
if l % 2 == 1:
  ans = 0
else:
  ans = (S[:l//2] == S[l//2:])
if ans:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
N = int(input())
str_input = input()
 
if N % 2 != 0:
  print('No')
else:
  print('Yes') if str_input[:N/2] == str_input[(N/2):] else print('No')

Submission status: Runtime Error

Solution code:
import sys

N = int(input())
str_input = input()

if N % 2 != 0:
  print('No')
else:
  print('Yes') if str_input[:N/2] == str_input[:N] else print('No')

Submission status: Runtime Error

Solution code:
S = input()

if len(S) % 2 != 0:
  matched = False
else:
  matched = True
  index = len(S)//2
  for i in range(index+1):
  	if S[i] != S[index+1]
    	matched = False
        break
        
if mathed:
  print('Yes')
else:
  print('False')

Submission status: Runtime Error

Solution code:
N = input()
S = input()
 
if N % 2 == 1:
  print("No")
  exit()
  
for x in range(N/2):
  if S[x] != S[x+N/2]:
    print("No")
    exit()
 
print("Yes")

Submission status: Runtime Error

Solution code:
N = input()
S = input()
 
if N % 2 == 1:
  print("No")
  sys.exit()
  
for x in range(N/2):
  if S[x] != S[x+N/2]:
    print("No")
    sys.exit()
 
print("Yes")

Submission status: Runtime Error

Solution code:
N = input()
S = input()

for x in range(N/2):
  if S[x] != S[x+N/2]:
    print("No")
    sys.exit()

print("Yes")

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()

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

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