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