You are viewing a single comment's thread. Return to all comments →
input() elm = set(map(int, input().split())) N = int(input()) for _ in range(N): op, l = input().split() getattr(elm, op)(set(map(int, input().split()))) print(sum(elm))
Seems like cookies are disabled on this browser, please enable them to open this website
Set Mutations
You are viewing a single comment's thread. Return to all comments →