Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
10489 huangshengxuan 四驱车比赛-总排名 C++ 解答错误 0 MS 240 KB 302 2023-02-25 14:55:26

Tests(0/1):


#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; }


测评信息: