记录编号 320649 评测结果 AAAAAAAAAA
题目名称 [NOIP 2010冲刺十]数字积木 最终得分 100
用户昵称 Gravatar_Itachi 是否通过 通过
代码语言 C++ 运行时间 0.038 s
提交时间 2016-10-12 15:58:08 内存使用 0.32 MiB
显示代码纯文本
#include <cstdio>
#include <algorithm>
#include <iostream>
using namespace std;
#define Tree_In_Tree_With_Chairman_Tree int
const Tree_In_Tree_With_Chairman_Tree maxn=1005;
#define Tree_In_Tree_with_Chairman_Tree string
Tree_In_Tree_with_Chairman_Tree Tree_in_Tree_with_Chairman_Tree[maxn];Tree_In_Tree_With_Chairman_Tree tree_in_tree_with_Chairman_Tree;
bool Tree_IN_Tree_With_ChairMan_TRee(Tree_In_Tree_with_Chairman_Tree Tree_IN_Tree_With_Chairman_Tree,Tree_In_Tree_with_Chairman_Tree Tree_iN_Tree_With_Chairman_Tree){
	return Tree_IN_Tree_With_Chairman_Tree
	+Tree_iN_Tree_With_Chairman_Tree
	>Tree_iN_Tree_With_Chairman_Tree+Tree_IN_Tree_With_Chairman_Tree;
}
void _work(){
	cin>>tree_in_tree_with_Chairman_Tree;
	Tree_In_Tree_With_Chairman_Tree Tree_iN_Tree_With_Chairman_TRee;
	for(Tree_iN_Tree_With_Chairman_TRee=0;
		Tree_iN_Tree_With_Chairman_TRee<tree_in_tree_with_Chairman_Tree;
		Tree_iN_Tree_With_Chairman_TRee++)
		cin>>Tree_in_Tree_with_Chairman_Tree[Tree_iN_Tree_With_Chairman_TRee];
	sort(Tree_in_Tree_with_Chairman_Tree,
		Tree_in_Tree_with_Chairman_Tree+tree_in_tree_with_Chairman_Tree,Tree_IN_Tree_With_ChairMan_TRee);
	for(Tree_iN_Tree_With_Chairman_TRee=0;
		Tree_iN_Tree_With_Chairman_TRee<tree_in_tree_with_Chairman_Tree;
		Tree_iN_Tree_With_Chairman_TRee++)
		cout<<Tree_in_Tree_with_Chairman_Tree[Tree_iN_Tree_With_Chairman_TRee];
}
Tree_In_Tree_With_Chairman_Tree main(){
#define Tree_in_Tree_with_Chairman_tree Tree_in_tree_with_Chairman_Tree
#ifdef Tree_in_Tree_with_Chairman_tree
	freopen("brick.in","r",stdin);
	freopen("brick.out","w",stdout);
#endif
	_work();
#ifndef Tree_in_Tree_with_Chairman_tree
	getchar(),getchar();
#endif
	fclose(stdin);fclose(stdout);
}