成绩排序 (Python代码) 摘要: 前提申明:我使用了两种解法但是结果都是错误50%,但没有找到问题所在,自己测试 了几组特殊数据排序正确的 分析: 方法一:先按成绩冒泡排序,再按名字冒泡排序,再按年龄冒泡排序…… 题解列表 2020年01月27日 0 点赞 2 评论 1518 浏览 评分:2.0
题目 1739: 成绩排序 摘要:解题思路:注意事项:参考代码:def compare_students(student): name, age, score = student return (score, name, …… 题解列表 2023年11月10日 0 点赞 0 评论 262 浏览 评分:2.0
对矩阵二维数组还是不是很熟悉啊 摘要:解题思路:注意事项:折腾了这么久,不懈题解对不起自己看时间一道题也高了快一个小时了参考代码:##while True:## n=int(input())## lh=[]## for …… 题解列表 2022年05月27日 0 点赞 0 评论 221 浏览 评分:2.0
成绩排序c语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h> struct student{ char name[200]; int age; …… 题解列表 2022年12月12日 0 点赞 0 评论 109 浏览 评分:0.0
编写题解 1739: 成绩排序(有问题,求帮助) 摘要:都有问题,还没解决,暂时先记录 一: #include #include typedef struct student{ char name[200]; int age; …… 题解列表 2023年03月17日 0 点赞 0 评论 113 浏览 评分:0.0
成绩排序-题解(Java代码) 被测试数据有多组这句话坑了一次 摘要: import java.util.Scanner; public class Main { public static void main(String[] …… 题解列表 2019年09月29日 0 点赞 0 评论 801 浏览 评分:0.0
TMD,坑壁题目!! 摘要:注意事项: 不止一组输入!!不止一组输入!!! 也就是说输入其实是: 3 xxxx &nbs 题解列表 2023年08月10日 0 点赞 0 评论 150 浏览 评分:0.0
50分怎么办? 摘要:输入问题。每次输入学生的信息,用一个直接读入即可。scanf("%s %d %d", &students[i].name, &students[i].age, &students[i].marks);…… 题解列表 2023年08月24日 0 点赞 0 评论 168 浏览 评分:0.0
C++类的思想题解 摘要:解题思路:使用类的思想,其他的就不说了别的地方都有写。注意事项:参考代码:#include<iostream>using namespace std;class Student {private: s…… 题解列表 2023年11月01日 0 点赞 0 评论 123 浏览 评分:0.0
成绩排序(Python实现) 摘要:解题思路:注意事项:参考代码:def sort_students(students): students.sort(key=lambda x: (x[2], x[0], x[1])) re…… 题解列表 2023年11月12日 0 点赞 0 评论 169 浏览 评分:0.0