You are viewing a single comment's thread. Return to all comments →
_ = int(input()) a = set(map(int, input().split())) n = int(input()) for _ in range(n): op, _ = input().split() b = set(map(int, input().split())) getattr(a, op)(b) print(sum(a))
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 →