提交记录 11234


用户 题目 状态 得分 用时 内存 语言 代码长度
Riddle233 1001. 测测你的排序 Compile Error 0 0 ns 0 KB C++ 449 B
提交时间 评测时间
2019-11-08 10:03:53 2020-08-01 02:40:06
#include <cstdio>
#include <algorithm>
using namespace std;
#define re register int
inline int read(){
	re x=0,f=1;
	register char ch;
	for(ch=getchar();ch<'0'||ch>'9';ch=getchar())if(ch=='-')f=-1;
	for(;ch>='0'&&ch<='9';ch=getchar())x=(x<<1)+(x<<3)+(ch^48);
	return x*f;
}
int main(){
    re n=read;
    for(re i=1;i<=n;++i){
    	a[i]=read();
    }    
    sort(a+!,a+n+1);
    for(re i=1;i<=n;++i){
    	printf("%d ",a[i]);
    }

    return 0;
}

CompilationN/AN/ACompile ErrorScore: N/A


Judge Duck Online | 评测鸭在线
Server Time: 2026-03-28 03:24:31 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠