#include <stdio.h>
#include <stdlib.h>
#define LEN sizeof(struct Student)
struct Student
{
int num;
char name[20];
float math_score;
float lite_score;
struct Student *next;
};
int main()
{
int i;
float sum=0,max=0,Max=0,he=0;
struct Student *head,*end,*curent;
for(i=0;i<20;i++)
{
curent=(struct Student *) malloc(LEN);
scanf("%d",&curent->num);
scanf("%s",curent->name);
scanf("%f",curent->math_score);
scanf("%f",curent->lite_score);
curent->next=NULL;
if(i==0)
{
head=curent;
end=curent;
}
else
{
end->next=curent;
end=curent;
}
}
curent=head;
for(i=1;i<20;i++)
{
float f=curent->math_score;
float g==curent->lite_score;
if(max<f)
{max=f;}
sum+=f;
if(Max<g)
{Max=g;}
he+=g;
curent=curent->next;
}
printf;
return 0;
}