信息学奥赛一本通T1176-谁考了第k名-题解(C++代码) 摘要:# 自定义排序cmp即可 ```c #include using namespace std; int m,n; struct T{ int a; double b; }a…… 题解列表 2020年07月21日 0 点赞 0 评论 2015 浏览 评分:5.5
2328: 信息学奥赛一本通T1176-谁考了第k名(C++代码)自定义sort规则排序 摘要:解题思路:用学生数组记录数据自定义比较函数,利用 sort 函数排序输出对应的下标[k - 1]的成员学号与成绩即可注意事项:题目要求 %g 输出分数,用 scanf 函数输出比较方便但如果学号是st…… 题解列表 2021年03月12日 0 点赞 0 评论 1479 浏览 评分:7.9
pair方法解决,方便易懂 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;typedef pair<int,double> bai…… 题解列表 2023年04月26日 0 点赞 0 评论 151 浏览 评分:9.9
冒泡排序c++ 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;struct student{ int name; double s…… 题解列表 2023年11月09日 0 点赞 0 评论 78 浏览 评分:0.0