| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 140933 | 李折曦 | 19从小到大进行排序 | C++ | Accepted | 0 MS | 276 KB | 345 | 2025-12-20 14:33:33 |
#include<bits/stdc++.h> using namespace std; int main() { int n; int a[200000]; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; } for(int j=1;j<n;j++){ for(int i = 1;i<n;i++){ if(a[i]>a[i+1]){ int temp=a[i]; a[i]=a[i+1]; a[i+1]=temp; } } } for(int i = 1;i<=n;i++){ cout<<a[i]<<" "; } return 0; }