Sum - Integers having at least one D


 


N=int(input())

a=[(i) for i in input().split()] k=input().strip() f=[] for i in arr: if k in i: final.append(i) if not f: print(-1) else: r=[int(i) for i in f] print(sum(r))

Post a Comment

0 Comments