subset
Submit solution
Points:
100
Time limit:
1.0s
Memory limit:
32M
Problem types
Allowed languages
C, C++, Java, Python
Description
Their are two set A and B,each element x in A or B satisefy 1 ≤ x ≤ 10^9,A and B both have not more than 15000 elements。We want to find the ralationship between A and B 。You only need to make sure how many elements in B but not in A。
Input
Their are more than one case。 The first line :Two integers N,M,means the second line has N element in A,The third line has M element in B。
Output
one integer means the number of elements in B but not in A.
Sample
Input
2 1
1 2
1
Output
0
Comments