#include<stdio.h>
#include <malloc.h>
struct stu
{float score;
struct stu *next;
};
float find_min_score(struct stu*);
float find_min_score(struct stu *head)
{ struct stu *pf,*pb;
pf=head;
pb=head;
while(pf!=NULL)
{if(pb->score>pf->score)
pb=pf;
pf=pf->next;
}
return(pb->score);
}
void mian()
{struct stu *head,*p,*q;
int n,i;
scanf("%d",&n);
for(i=0;i<n;i++)
{p=(struct stu*) malloc(sizeof(struct stu));
printf("输入成绩");
scanf("%f",&p->score);
if(i==0)
head=q=p;
else {q->next=p; q=q->next;q->next=NULL;}
}
printf("\n%f",find_min_score(head));
}