490 - Rotating Sentences
来源:互联网 发布:产品进入淘宝首页 编辑:程序博客网 时间:2024/06/08 20:09
#include<stdio.h>
#include<string.h>
#include<ctype.h>
#define MAXN 105
char s[100][100];
int main()
{
int n=0,i,j,k,count;
for (i=0;i<100;i++)
{
if(fgets(s[i],MAXN,stdin)==NULL)break;
else
{
if(n<(int)strlen(s[i]))
n=strlen(s[i]);
}
}
for(k=0;k<n-1;k++)
{
for(j=i-1;j>=0;j--)
if(isprint(s[j][k]))
printf("%c",s[j][k]);
else
printf("");
printf("\n");
}
return 0;
}
uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=431
#include<string.h>
#include<ctype.h>
#define MAXN 105
char s[100][100];
int main()
{
}
uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=431
0 0
- 490 - Rotating Sentences
- poj 3335 Rotating Scoreboard
- poj 3335 Rotating Scoreboard
-  
-
- 490 - Rotating Sentences
- uvaoj 490 - Rotating Sentences
- Uva 490 Rotating Sentences
- UVa 490 - Rotating Sentences
- UVA-490-Rotating Sentences
- 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
- 10300 - Ecological Premium
- 458 - The Decoder
- 494 - Kindergarten Counting Game
- 414 - Machined Surfaces
- 从最大似然到EM算法浅解
- 490 - Rotating Sentences
- 445 - Marvelous Mazes
- 488 - Triangle Wave
- 489 - Hangman Judge
- 694 - The Collatz Sequence
- C# ASP.NET GridView导出EXCEL。
- Linux Input子系统--设备的注册和打开
- 457 - Linear Cellular Automata
- 401 - Palindromes