You are viewing a single comment's thread. Return to all comments →
_, a = input(), set(map(int, input().split())) for i in range(int(input())): command = str(input().split()[0]) s = set(map(int, input().split())) eval(f"a.{command}({s})") 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 →