Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
127233 张耀夫 冒泡排序法 C++ 运行出错 23 1 MS 268 KB 259 2024-01-25 08:27:13

Tests(5/21):


#include <bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; int a[1000]; 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; }


测评信息: