You are viewing a single comment's thread. Return to all comments →
I'm sure it's not the greatest solution..
A = set(*[list(map(int, input().split())) for _ in input().split()]) for _ in range(int(input())): cmd, *values = input().split() B = set([int(i) for i in input().split()]) exec(f'A.{cmd}(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 →
I'm sure it's not the greatest solution..