#include<cstdio>
#include<iostream>
#include<algorithm>
#include<queue>
#include<map>
#include<vector>
#include<set>
#include<string>
#include<cmath>
#include<cstring>
using namespace std;
int main()
{
int n;
scanf("%d",&n);
char str[];
for(int i=;i<n;i++)
{
getchar();
str[i]=getchar();
}
// cout<<str<<endl;
int start=,end=n-;
int cnt=;
while(start<=end)
{
bool left=false;
for(int i=;start+i<=end;i++)
{
if(str[start+i]<str[end-i])
{
left=true;
break;
}
else if(str[start+i]>str[end-i])
{
left=false;
break;
}
}
if(left)
putchar(str[start++]);
else
putchar(str[end--]);
cnt++;
if(cnt%==)
putchar('\n');
}
return ;
}

最新文章

  1. 在xaf 14 中实现 Tonyyang原文中的action权限
  2. openssl,db,mysql,sasl编译安装
  3. C++学习网站(转)
  4. ArcGisServer根据最大最小坐标换算瓦片行列号(转载)
  5. 数据库及SQL----常用知识点总结
  6. nodejs文件操作模块FS(File System)常用函数简明总结(转)
  7. Eric5 for Python 3.3.3安装指南
  8. 金三银四,如何征服面试官,拿到Offer
  9. .net core 2.x - docker(for windows)-linux配置及项目+SqlServer发布
  10. CSS3 - 盒子的 box - size
  11. 20170906xlVBA_GetEMailFromDocument
  12. session和cookie的作用和原理
  13. zTree的简单例子
  14. sigmod2017.org
  15. 轻松解决vuejs跨域
  16. code_blocks 使用操作手册
  17. requests中获取请求到文本编码格式
  18. drop解决过拟合的情况
  19. [洛谷P5216]DLS 采花
  20. Jenkins集成selenium

热门文章

  1. ADC分辨率
  2. CF940F Machine Learning(带修莫队)
  3. django-blog:多对多查询
  4. UVA_10603 倒水问题 隐式图搜索
  5. (4)关于Alpha通道问题
  6. jenkins忘记登录密码解决方法
  7. HTML 回到顶部 浮动
  8. UML-GRASP后4种模式
  9. POJ 1258:Agri-Net Prim最小生成树模板题
  10. MySQL--SQL分类