Sort by

recency

|

737 Discussions

|

  • + 0 comments
    n, l = int(input()), list(input().split(" "))
    if all([ int(x)>=0 for x in l])  and any([all([x[i] == x[len(x)-i-1] for i in range(len(x)//2)]) for x in l])     : print(True) 
    else: print(False)
    
  • + 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))