Sort by

recency

|

754 Discussions

|

  • + 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)
        
    
  • + 0 comments
    t = int(input())
    arr = input().split()
    print(all(int(x) > 0 for x in arr) and any(x == x[::-1] for x in arr))
    
  • + 0 comments
    n,N= int(input()), list(map(int, input().split()))
    a, b= all([i >0 for i in N]), any([str(i) == str(i)[::-1] for i in N]) 
    print(a and b)
    
  • + 0 comments

    lines , s= int(input()),list(map(str, input().split())) if(all(list(map(lambda x : True if int(x)>0 else False, s))) and any(list(map(lambda x : True if x[::-1]==x else False, s)))):print(True) else: print(False)

  • + 0 comments
    N = int(input())
    list1 = list(map(int, input().split()))
    
    result = all(i>0 for i in list1) and any(str(i)==str(i)[::-1] for i in list1)
    
    print(result)