建议降红(入门)
查看原帖
建议降红(入门)
1245542
like_1999楼主2024/3/31 13:39
#include<bits/stdc++.h> 
using namespace std;
int main()
{
	int b, m;
	cin >> b >> m;
	int n[m];
	for (int q = 0 ; q < m ; q++) cin >> n[q];
	sort (n , n + m);
	for (int q = 0 ; q < m ; q++) cout << n[q] << " ";
	return 0;
}

12行搞定。

2024/3/31 13:39
加载中...