Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
10494 huangshengxuan 四驱车比赛第一轮排名 C++ 运行出错 0 MS 244 KB 302 2023-02-25 15:01:53

Tests(0/1):


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


测评信息: