Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
10494 | huangshengxuan | 四驱车比赛第一轮排名 | C++ | Runtime Error | 0 MS | 244 KB | 302 | 2023-02-25 15:01:53 |
#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; }