You are viewing a single comment's thread. Return to all comments →
n = int(input()) A = set(map(int, input().split())) N = int(input()) for _ in range(0, N): cmd = input().split()[0] B = set(map(int, input().split())) getattr(A, cmd)(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 →