Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
10489 | huangshengxuan | 四驱车比赛-总排名 | C++ | Wrong Answer | 0 MS | 240 KB | 302 | 2023-02-25 14:55:26 |
#include<bits/stdc++.h> using namespace std; int main() { int a[8]; for(int i=0;i<8;i++){ cin>>a[i]; } for(int i=0;i<8;i++){ if(a[i]<a[i+1]){ int f; f=a[i]; a[i]=a[i+1]; a[i+1]=f; } } for(int i=0;i<8;i++){ cout<<a[i]<<" "; } return 0; }