#include<stdio.h>
#include<stdlib.h>
#include<string.h>
struct Student{
char name[9];
int chinese;
int math;
int english;
int total;
};
int main(void) {
int N, i, j;
scanf("%d", &N);
struct Student temp, * p = (struct Student*)calloc(N, sizeof(struct Student));
for (i = 0; i < N
洛谷P5741 【深基7.例10】旗鼓相当的对手 - 加强版经典解法
最新推荐文章于 2024-12-06 10:11:52 发布
本文介绍了一个使用C语言编写的程序,该程序能够输入学生的信息,并按姓名排序,然后根据科目成绩匹配相似的学生。程序首先定义了一个学生结构体,包括姓名及各科成绩等字段。随后通过读取学生信息并计算总分,接着对学生姓名进行排序,并找出各科成绩差距在限定范围内的学生对。

最低0.47元/天 解锁文章
4109

被折叠的 条评论
为什么被折叠?



