| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
朴素做法~~#include<stdio.h>
#include<string.h>
main()
{
char a[200];
int i;
while(gets(a))
{
if(strcmp(a,"START")==0);
else if(strcmp(a,"END")==0);
else if(strcmp(a,"ENDOFINPUT")==0)
return 0;
else
{
for(i=0;i<strlen(a);i++)
{
if('A'<=a[i]&&a[i]<='E')
printf("%c",a[i]+'\25');
else if('F'<=a[i]&&a[i]<='Z')
printf("%c",a[i]-'\5');
else
printf("%c",a[i]);
}
printf("\n");
}
}
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator