Skip to content

Instantly share code, notes, and snippets.

@modos
Created January 19, 2024 14:10
Show Gist options
  • Save modos/c1247bb4a7fb75057fcc981d58392ac2 to your computer and use it in GitHub Desktop.
Save modos/c1247bb4a7fb75057fcc981d58392ac2 to your computer and use it in GitHub Desktop.
قاشق و چنگال
n = int(input())
a = input()
a1, a2 = (a[:int(len(a)/2)], a[int(len(a)/2):])
b = True
for i in range(n):
if a1[i] == a2[i]:
b = False
if b:
print("YES")
else:
print("NO")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment