| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 127406 | 伍逸 | 车厢重组 | C++ | Wrong Answer | 0 | 1930 MS | 436 KB | 258 | 2024-01-25 08:58:13 |
#include<iostream> using namespace std; int main(){ int n;cin>>n; int a[n+1]; for(int i=1;i<=n;i++) cin>>a[i]; for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ if(a[i]<a[j]) swap(a[i],a[j]); } } for(int i=1;i<=n;i++) cout<<a[i]<<" "; }