Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
51488 | littletwleve | 四驱车比赛-总排名 | C++ | Accepted | 0 MS | 244 KB | 285 | 2024-09-21 23:41:22 |
#include<bits/stdc++.h> using namespace std; int main(){ int c[6]; for(int i=0;i<6;i++){ cin>>c[i]; } for(int i=0;i<5;i++){ for(int j=0;j<5;j++){ if(c[j]>c[j+1]){ swap(c[j],c[j+1]); } } } for(int i=0;i<6;i++){ cout<<c[i]<<" "; } return 0; }