UVaOJ 490 - Rotating Sentences
来源:互联网 发布:jquery如何定义数组 编辑:程序博客网 时间:2024/06/10 06:27
#include <cstdio>#include <cstring>char buf[102][102];int main(){memset(buf, '\0', sizeof(buf));int n = 0;int maxLen = 0;while(gets(buf[n]) != NULL){int len = strlen(buf[n]);if(len > maxLen){maxLen = len;}++n;}for(int i = 0; i < maxLen; ++i){for(int j = n - 1; j >=0; --j){if(buf[j][i] == '\0'){printf(" ");}else{printf("%c", buf[j][i]);}}printf("\n");}return 0;}
0 0
- uvaoj 490 - Rotating Sentences
- UVaOJ 490 - Rotating Sentences
- UVaOJ 490 Rotating Sentences
- UVaOJ 490 - Rotating Sentences
- UVaOJ 490 Rotating Sentences
- 490 - Rotating Sentences
- Uva 490 Rotating Sentences
- UVa 490 - Rotating Sentences
- UVA-490-Rotating Sentences
- 490 - Rotating Sentences
- 490 - Rotating Sentences
- UVa 490 - Rotating Sentences
- UVA 490 - Rotating Sentences
- UVa 490 - Rotating Sentences
- 490 - Rotating Sentences
- 490 - Rotating Sentences
- UVa:490 - Rotating Sentences
- 490 - Rotating Sentences
- SQL给查询结果加序号
- 判断是否重复录入
- 关联分析算法Apriori介绍
- 选择树--胜者树与失败树
- 纽约街头摔倒有没有人扶
- UVaOJ 490 - Rotating Sentences
- 托管c++ (CLI) String^ 到 std::string 的相互转化
- 7种形式的Android AlertDialog使用举例
- 线性表-链表栈
- firefox os 模拟器安装及启动(1)
- 运用Java JDBC编写程序向MySQL中插入数据
- 来广州传智播客学习PHP,不做孬种程序员
- [IOS] Xcode创建子工程以及工程依赖
- UIScrollView的属性总结