c++ sort快排解决问题(签到) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int N = 2e2 + 5;int main(){ …… 题解列表 2023年01月12日 0 点赞 0 评论 154 浏览 评分:0.0
小南解题--前10名--67ms 摘要:n = int(input())zz=list(map(int,input().split()))zz.sort(reverse=True)for i in zz[:10]: print(i,e…… 题解列表 2022年08月27日 0 点赞 0 评论 115 浏览 评分:0.0
111111111111111111111111111111111111111111111111111111111111111111 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int ch(int x,int y){ return x>y;}int main(…… 题解列表 2022年08月06日 0 点赞 0 评论 161 浏览 评分:0.0
逆序输出的方法都有哪些啊 摘要:解题思路:注意事项:参考代码:n=input()li=list(map(int,input().split()))q10=sorted(li)##print(q10)n=0for i in q10[:…… 题解列表 2022年07月24日 0 点赞 0 评论 177 浏览 评分:0.0
蓝桥杯算法提高VIP-前10名-题解(Python代码) 摘要:注意事项:注释的那一行用了map函数好像就不能对列表用len和sorted函数了,map函数是返回一个新的列表参考代码:n = int(input())# num_list = map(int, in…… 题解列表 2021年02月19日 0 点赞 0 评论 247 浏览 评分:0.0
蓝桥杯算法提高VIP-前10名 摘要:参考代码:num = int(input())ls = list(map(int, input().split()))ls.sort()ls.reverse()for i in range(10): …… 题解列表 2021年04月08日 0 点赞 0 评论 179 浏览 评分:0.0
1503——————前10名 摘要: n = int(input()) m = sorted(list(map(int,input().split())))[::-1] for i in range(10):p…… 题解列表 2022年07月09日 0 点赞 0 评论 246 浏览 评分:0.0
蓝桥杯算法提高VIP-前10名 题解(c++ bool就欧了,很简单啦) 摘要:解题思路:这题我就是用cmp从大到小排序后输出前10个。大家也可以先sort从小到大排序后输出后10个,不过有些费脑去找坐标。我觉得打个bool也不多,不费时间,好一点。注意事项:无。参考代码:#in…… 题解列表 2022年05月12日 0 点赞 0 评论 204 浏览 评分:0.0
蓝桥杯算法提高VIP-前10名 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long n,a[1000];int main(){ cin>>n;…… 题解列表 2022年05月16日 0 点赞 0 评论 237 浏览 评分:0.0
蓝桥杯算法提高VIP-前10名 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){ int n; int a[21…… 题解列表 2022年05月20日 0 点赞 0 评论 196 浏览 评分:0.0