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