Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
24337 | 老方 | 四驱车比赛-总排名 | C++ | Accepted | 0 MS | 240 KB | 311 | 2023-08-10 13:14:30 |
#include<bits/stdc++.h> using namespace std; int main(){ int s[6]; for(int i=0;i<6;i++){ cin>>s[i]; } for(int j=0;j<5;j++){ for(int i=0;i<5;i++){ if(s[i]>s[i+1]){ int t=s[i]; s[i]=s[i+1]; s[i+1]=t; } } } for(int i=0;i<6;i++){ cout<<s[i]<<" "; } return 0; }