Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # By: Pedro Izecksohn
- def uniqueSum(l):
- total=0
- for s in l:
- conjunto=set()
- contains=False
- for c in s:
- if c in conjunto:
- contains=True
- break
- conjunto.add(c)
- if contains:
- continue
- total+=int(s)
- return total
- if __name__=="__main__":
- l=input().split(" ")
- print(uniqueSum(l))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement