#include
#define N 10
int main(void)
{
int a[N]={1,2,3,4,5,6,7,8,9,10};
int n=2;//2退出
int i=1,temp=0;
int count=N;
//1 2 3 4 5 6 7 8 9 10
while(1){
temp %= 10;//temp循环当等于10的时候变成0
if(a[temp] != -1){
if(i==2){
a[temp]=-1;
i=1;
temp++;
count--;
}else{
i++;
temp++;
}
}else{
temp++;
}
if(count == 1)
break;
}
for(i=0;i<10;i++)
printf("%d\n",a[i]);
return 0;
}