You are viewing a single comment's thread. Return to all comments →
One line solution
print((n := int(input())) and (lista := list(map(int, input().split()))) and all([all(val > 0 for val in lista), any(str(val) == str(val)[::-1] for val in lista)]))
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 →
One line solution