Python HackerRank 문제 49 - Set Mutations Set Mutations 풀이 a = input() s1 = set(map(int,input().split())) for i in range(int(input())): x = input().split() s2 = set(map(int,input().split())) if x[0]=="intersection_update": s1.intersection_update(s2) elif x[0]=="update": s1.update(s2) elif x[0]=="symmetric_difference_update": s1.symmetric_difference_update(s2) elif x[0]=="difference_update": s1.difference_update(s2) print(sum(s1)) * 출처 Set Mutations | HackerRank Using various operations, change the...
#HackerRank_SetMutations
#Python
#Python_HackerRank
#Python_HackerRank_SetMutations
#Python_SetMutations
원문링크 : Python HackerRank 문제 49 - Set Mutations