We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Sets
- Set Mutations
- Discussions
Set Mutations
Set Mutations
Sort by
recency
|
804 Discussions
|
Please Login in order to post a comment
x = int(input())
li = input().split()
li = set([eval(i) for i in li])
n = int(input())
for line in range(int(n)):
Sum = sum(li)
print(Sum)