Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
10495 | huangshengxuan | 四驱车比赛第一轮排名 | C++ | Presentation Error | 0 MS | 252 KB | 303 | 2023-02-25 15:03:10 |
#include<bits/stdc++.h> using namespace std; int main() { int a[6]; for(int i=0;i<6;i++){ cin>>a[i]; } for(int i=0;i<6;i++){ if(a[i]>a[i+1]){ int tmp; tmp=a[i]; a[i]=a[i+1]; a[i+1]=tmp; } } for(int i=0;i<6;i++){ cout<<a[i]<<" "; } return 0; }