You are viewing a single comment's thread. Return to all comments →
n=int(input()) A=input().split() B=[] if all(int(x)>0 for x in A) and any([list(a)[::-1]==list(a) for a in A]): print(True) else: print(False)
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 →
n=int(input()) A=input().split() B=[] if all(int(x)>0 for x in A) and any([list(a)[::-1]==list(a) for a in A]): print(True) else: print(False)