成绩排序(水题) ```c#include#includestructstu{charname[200];inta,b;};intmain(){structstust[1001],t;intn,i,j;while(~scanf("%d",&n)){for(i=0;ist[j+1].a){t=st[j];st[j]=st 题解列表 2023年01月19日 0 点赞 0 评论 462 浏览 评分:0.0
编写题解 1739: 成绩排序(有问题,求帮助) 都有问题,还没解决,暂时先记录一:#include#includetypedefstructstudent{charname[200];intage;intgreed;structstudent*next;}node;intmain(){intn;scanf("%d", 题解列表 2023年03月17日 0 点赞 0 评论 495 浏览 评分:0.0
1739: 成绩排序 摘要:结构体的排序,自己写一个 sort 函数的比较算法就好了。#include<bits/stdc++.h> using namespace std; struct student{ s…… 题解列表 2021年12月18日 0 点赞 0 评论 610 浏览 评分:0.0
50分怎么办? 摘要:输入问题。每次输入学生的信息,用一个直接读入即可。scanf("%s %d %d", &students[i].name, &students[i].age, &students[i].marks);…… 题解列表 2023年08月24日 0 点赞 0 评论 523 浏览 评分:0.0
C++类的思想题解 摘要:解题思路:使用类的思想,其他的就不说了别的地方都有写。注意事项:参考代码:#include<iostream>using namespace std;class Student {private: s…… 题解列表 2023年11月01日 0 点赞 0 评论 544 浏览 评分:0.0
成绩排序(Python实现) 摘要:解题思路:注意事项:参考代码:def sort_students(students): students.sort(key=lambda x: (x[2], x[0], x[1])) re…… 题解列表 2023年11月12日 0 点赞 0 评论 614 浏览 评分:0.0
1739: 成绩排序 (坑很多) 摘要:解题思路:注意事项:1.成绩小的在前 2.名字小的在前(比较的整个字符串不是首字母) 3.年龄小的在前参考代码:#include<stdio.h> typedef struct{ char a[10…… 题解列表 2023年11月22日 0 点赞 0 评论 660 浏览 评分:0.0
c代码记录之成绩排序 摘要:解题思路:注意事项:多组输入代码实现二级动态数组的内存分配及释放strcmp及strcpy函数参考代码:#include<stdio.h> #include<string.h> int main(…… 题解列表 2023年11月28日 0 点赞 0 评论 476 浏览 评分:0.0
编写题解 1739: 成绩排序 -java比较器 摘要:解题思路: 利用集合的sort进行排序(重写比较器)注意事项: 第一排序条件为成绩 其次姓名 最后年龄参考代码:import java.util.ArrayList; import java.uti…… 题解列表 2024年06月14日 0 点赞 0 评论 593 浏览 评分:0.0
1739: 成绩排序 sort+结构体 包看懂 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义结构体xs,包含三个成员变量:字符串x、整数y和整数z stru…… 题解列表 2024年12月08日 0 点赞 0 评论 553 浏览 评分:0.0