You are viewing a single comment's thread. Return to all comments →
Can we make it even more concise?
_, A = input(), set(map(int, input().split())) [getattr(A, input().split()[0])(set(map(int, input().split()))) for i in range(int(input()))] 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 →
Can we make it even more concise?