Sort by

recency

|

758 Discussions

|

  • + 0 comments
    N = int(input())
    integers = list(map(int,input().split()))
    
    def is_palindromic(integer):
        string = str(integer)
        reverse_string = string[-1::-1]
        if string == reverse_string :
            return True
            
    print((all(map(lambda x: x>0, integers))) and (any(map(lambda x: is_palindromic(x), integers))))
    
  • + 0 comments

    N = int(input())

    int_list = list(map(int, input().split()))

    print(all([i>0 for i in int_list]+[any([i==i[::-1] for i in map(str, int_list)])]))

  • + 0 comments
    # Enter your code here. Read input from STDIN. Print output to STDOUT
    N = int(input())
    integers = input().split()
    print(all(int(num)>0 for num in integers) and any(num == num[::-1] for num in integers))
    
  • + 0 comments
    N = int(input())
    l1 = input().split()
    
    print(all(int(i) > 0 for i in l1) and any(item == item[::-1] for item in l1))
    
  • + 0 comments
    n=int(input())
    l=list(map(int,input().split()))
    m=list(map(lambda x:x>0,l))
    for i in l:
        if str(i)==str(i)[::-1] or i<10:
            print(all(m))
            break
            
    else:
        print(False)