poj 2039
来源:互联网 发布:js里的window.onload 编辑:程序博客网 时间:2024/06/13 14:45
#include<cstdio>#include<cstring>int main(){int n;char str[1000];while(~scanf("%d",&n)&&n){scanf("%s",str);int len=strlen(str);for(int i=0;i<n;i++)for(int j=0;j<len/n;j++)if(j&1)printf("%c",str[n-1-i+n*j]);elseprintf("%c",str[i+n*j]);printf("\n");}return 0; }
0 0
- poj 2039
- POJ-2039
- poj 2039
- POJ 2039一维蛇型变二维
- POJ 2039 Floyd
- POJ
- poj
- POJ
- POJ
- poj
- poj
- POJ
- POJ
- poj
- POJ
- POJ
- POJ
- POJ
- Effective C++读书笔记四
- ReactNative清空购物车-学习笔记
- JSX和组件的概念
- Spring中的BeanPostProcessor
- JDBC的基本使用
- poj 2039
- Return of the Nim----Nim博弈+威佐夫博弈 山东省第八届省赛A题
- android面试题-人事面试宝典一之自我介绍
- 2017-05-08 总结
- 快速排序(源码)
- Android应用开发入门经典学习笔记08--List、Grid、Gallery以及Flipper
- 一些面试时候可能遇到的问题
- 浅谈FlexBox布局
- grpc官方文档实验与翻译(python版)