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