65,210
社区成员
发帖
与我相关
我的任务
分享
int bo(int x)
{
int s1[]={1,2,3,4,5,6,7,8,9,10};
int s2[]={11,12,13,14,15,16,17,18,19,20};
int s3[]={21,22,23,24,25,26,27,28,29,30};
for(int i=0;i!=10;i++)
{
if(x==s1[i])x=0;
if(x==s2[i])x=-1;
if(x==s3[i])x=-2;
}
return x;
}