int a[100];
int main()
{
int n,i,j;
int t,flag=0;
scanf("%d",&n);
for(i=0;i
for(i=0;i
t=a[j];
a[j]=a[j+1];
a[j+1]=t;
}
for(i=0;i
for(j=0;j
if((2*a[i]==a[j])||(2*a[i]==3*a[j]+1))
flag++;
}
if (flag==0)
printf("%d ",a[i]);
flag=0;
}
return 0;
}
for(j=0;j<80&&str[i][j]!='\0';j++);
这里不要分号!!这错很难察觉啊~~还是细心点好~~