We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
N=int(input())
li=list(map(int,input().split(" ")))
if (all(i>0 for i in li)==True) and (any(str(i)[::-1]==str(i) for i in li)==True):
print(True)
else:
print(False)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Any or All
You are viewing a single comment's thread. Return to all comments →
pyp3 answer
N=int(input()) li=list(map(int,input().split(" "))) if (all(i>0 for i in li)==True) and (any(str(i)[::-1]==str(i) for i in li)==True): print(True) else: print(False)