Created
January 19, 2024 14:10
-
-
Save modos/c1247bb4a7fb75057fcc981d58392ac2 to your computer and use it in GitHub Desktop.
قاشق و چنگال
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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