Q:

set .union() operation hackerrank solution

e="(set(input().split())if input()!='-1'else '')";print(len(eval(e)|eval(e)))
0

New to Communities?

Join the community