#include <stdio.h> #include <stdlib.h> struct stu { int a; int b; }*sc; int cmp(void* a1,void* a2) { return (((struct stu*)a1)->b-((struct stu*)a2)->b); } int main() { int n, r,avg; int i=0; int j=0; while(scanf("%d%d%d",&n,&r,&avg)...