#include#include typedef struct table{ int t; table *next;}node,*List;int main(){ freopen("file.txt","r",stdin); int mink,maxk,n; scanf("%d%d%d",&mink,&maxk,&n); List head=(List)malloc(sizeof(node)); List tail=head; for(int i=0;i t=a; tail->next=s; s->next=NULL; tail=s; } List h=head; for(int i=0;i next->t>mink&&h->next->t next; h->next=q->next; free(q); } else h=h->next; } h=head->next; while(h){ printf("%d\n",h->t); h=h->next; //printf("OK"); }}