这次主要练习集合这一数据类型。
P1. 洛谷B3633集合运算2
import sys
n1=input()
a1=sys.stdin.readline()
a2=a1.split()
A={int(i) for i in a2}
#print(A)
n2=input()
b1=sys.stdin.readline()
b2=b1.split()
B={int(i) for i in b2}
#print(B)
print(len(A))
C=A&B
D=A|B
U=set(range(0,64))
for item in C:
print(item,end=" ")
pass
print()
for item in D:
print(item,end=" ")
pass
print()
for item in U-A:
print(item,end=" ")
pass
print()
if(A==B):
print(1)
else:
print(0)
pass
if(A-B):
print(0)
else:
print(1)
pass
if(0 in A):#很方便哈
print(1)
else:
print(0)