#include
struct stu
{char name[20];
int score;
}a[50],t;
int main()
{ int i,j,n;
scanf("%d",&n);
for(i=0;iscanf("%s%d",a[i].name,&a[i].score);
for(i=0;ifor(j=0;j if(a[j].score {t=a[j];a[j]=a[j+1];a[j+1]=t;}
for(i=0;iprintf("%15s%5d\n",a[i].name,a[i].score);
return 0;
}
红楼梦-曹雪芹高鹗-免费电子书-在线阅读-网易云阅读