摘要:
先sort进行排序,然后输出第k大的元素即可 #include<iostream> #include<bits/stdc++.h> #include<cstdio> using namespace std; int n, k; int arr[10005]; int main() { scanf(" 阅读全文
posted @ 2022-09-03 02:25
白缺
阅读(76)
评论(0)
推荐(0)
摘要:
先sort排序,在输出最小的k个数。 #include<iostream> #include<bits/stdc++.h> #include<cstdio> using namespace std; int n, k; int arr[10005]; int main() { scanf("%d % 阅读全文
posted @ 2022-09-03 02:19
白缺
阅读(68)
评论(0)
推荐(0)

浙公网安备 33010602011771号