Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
93447 andrew 选择排序-函数 C++ Accepted 1 MS 264 KB 265 2024-10-15 21:35:18

Tests(1/1):


Code:

#include <bits/stdc++.h> using namespace std; const int N = 1e4; int a[N]; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) cin >> a[i]; sort(a + 1, a + n + 1); for (int i = 1; i <= n; i++) cout << a[i] << " "; return 0; }