zju1240 IBM减一 IBM Minus One
2010-10-13 08:35
351 查看
投机取巧,今天啊先把简单的提交提交。
用时:0ms
#include
int n;
int main()
{
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
int i;
char c;
scanf("%d/n",&n);
for(i=1;i<=n;i++)
{
printf("String #%d/n",i);
while((c=getchar())!=EOF&&c!='/n')
{
if(c=='Z')
putchar('A');
else
printf("%c",(char)c+1);
}
printf("/n/n");
}
return 0;
}
用时:0ms
#include
int n;
int main()
{
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
int i;
char c;
scanf("%d/n",&n);
for(i=1;i<=n;i++)
{
printf("String #%d/n",i);
while((c=getchar())!=EOF&&c!='/n')
{
if(c=='Z')
putchar('A');
else
printf("%c",(char)c+1);
}
printf("/n/n");
}
return 0;
}
相关文章推荐
- ZOJ 1240 IBM Minus One
- ZOJ Problem Set - 1240 IBM Minus One
- zoj 1240 IBM Minus One
- zoj 1240 IBM Minus One
- ZOJ Problem Set - 1240 IBM Minus One
- zoj 1240 IBM Minus One
- 1240_IBM Minus One
- zoj 1240 IBM Minus One
- ZOJ 1240 IBM Minus One
- zoj 1240.IBM Minus One
- ZOJ 1240 IBM Minus One
- zoj 1240 IBM Minus One
- ZOJ_1240_IBM Minus One
- ZOJ Problem Set - 1240 IBM Minus One
- ZOJ 1240: IBM Minus One
- 杭电 IBM Minus One
- IBM Minus One(water)
- HDU IBM Minus One
- hdu 1328 IBM Minus One
- IBM Minus One