Advertisement
ForestFox

Untitled

Nov 12th, 2021
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. def ful():
  2. x = {a+ b + c - (f(a, b, c) + f(b, a, c) + f(c, a, b))}
  3. return sorted(x)
  4. def f(x, y, z):
  5. return x - x.intersection(y) - x.intersection(z)
  6. a = set(map(int, input().split()))
  7. b = set(map(int, input().split()))
  8. c = set(map(int, input().split()))
  9. print(ful())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement