You are viewing a single comment's thread. Return to all comments →
n = input() A = set(map(int, input().split())) m = int(input()) for i in range(m): opr, R = (input().split()[0]), set(map(int, input().split())) exec(f'A.{opr}(R)') 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 →