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