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