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