Sort by

recency

|

736 Discussions

|

  • + 0 comments
    n, number_list = int(input()), list(input().split())
    print(all([int(el) > 0 for el in number_list]) and any(el == el[::-1] for el in number_list))
    
  • + 0 comments

    n=int(input()) A=input().split() B=[] if all(int(x)>0 for x in A) and any([list(a)[::-1]==list(a) for a in A]): print(True) else: print(False)

  • + 0 comments
    N, A = int(input()), input().split()
    print(all(int(x)>0 for x in A) and any(x == x[::-1] for x in A))
    
  • + 0 comments

    n, nums = int(input()), input().split() print(all(int(i) > 0 for i in nums) and any (i == i[::-1] for i in nums))

  • + 0 comments

    n, nums = int(input()), input().split() print(all(int(i) > 0 for i in nums) and any (i == i[::-1] for i in nums))