已知集合A={0,1,2},則集合B={x-y|x∈A,y∈A}中元素的個數(shù)是( )
A.1
B.3
C.5
D.9
【答案】分析:依題意,可求得集合B={-2,-1,0,1,2},從而可得答案.
解答:解:∵A={0,1,2},B={x-y|x∈A,y∈A},
∴當x=0,y分別取0,1,2時,x-y的值分別為0,-1,-2;
當x=1,y分別取0,1,2時,x-y的值分別為1,0,-1;
當x=2,y分別取0,1,2時,x-y的值分別為2,1,0;
∴B={-2,-1,0,1,2},
∴集合B={x-y|x∈A,y∈A}中元素的個數(shù)是5個.
故選C.
點評:本題考查集合中元素個數(shù)的最值,理解題意是關鍵,考查分析運算能力,屬于中檔題.