Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
318643 任晨熙 【C4-4】数组元素的排序 C++ 编译错误 0 0 MS 0 KB 294 2025-04-19 19:24:45

Tests(0/0):


#include<bits/stdc++.h> using namespace std; int a[114514],n,im; int main(){ cin>>n>>im; for(int i=1;i<=n;i++){ cin>>a[i]; } for(int i=i;i<n;i++){ int mi=i; } for(int j=i+1;j<=n;j++){ if(i!=j){ mi=j; } } if(i!=mi){ swap(a[i],a[mi]) } cout<<a[i]; return 0; }


测评信息: