We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Sets
- Set .union() Operation
- Discussions
Set .union() Operation
Set .union() Operation
Sort by
recency
|
795 Discussions
|
Please Login in order to post a comment
Language PyPy3 doesn't work for pop, switch to Python 3
e,n=int(input()), set(input().split())
b,m=int(input()), set(input().split())
print(len(n.union(m)))