题解列表

筛选

用内置函数解决问题

摘要:解题思路:将每个人学生的总成绩和学号用zip函数打包,可以实现学号和成绩的动态排序。用sort函数以及reverse函数先按总分大小进行排序,再来考虑总分相同的情况。注意事项:参考代码: n=int(……

蓝桥杯算法提高VIP-前10名

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){ int n; int a[21……

二级C语言-等差数列

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<fstream>#include<algorithm>using namespace std;int n,t=2,s……