You are viewing a single comment's thread. Return to all comments →
N = int(input()) l1 = input().split() print(all(int(i) > 0 for i in l1) and any(item == item[::-1] for item in l1))
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 →