| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 140875 | 王培臻 | 19从小到大进行排序 | C++ | Accepted | 0 MS | 272 KB | 332 | 2025-12-20 14:10:16 |
#include<bits/stdc++.h> using namespace std; int main(){ long long d,a[10001],f=0; cin>>d; for(int i=1;i<=d;i++){ cin>>a[i]; } for(int j=1;j<d;j++){ for(int i=1;i<d;i++){ if(a[i]>a[i+1]){ f=a[i]; a[i]=a[i+1]; a[i+1]=f; } } } for(int i=1;i<=d;i++){ cout<<a[i]<<" "; } return 0; }