| ||||||||||
| 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 | |||||||||
史上最水的问题,和3749一样#include <stdio.h>
#include <string.h>
char ss[26]={'V','W','X','Y','Z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U'};
int main(void)
{
int i,len;
char s1[20];
char s2[210];
while(gets(s1))
{
if(s1[0]=='E') break;
gets(s2);
gets(s1);
len = strlen(s2);
for(i=0;i<len;i++)
if(s2[i]-'A'>=0 && s2[i]-'A'<26)
printf("%c",ss[s2[i]-'A']);
else
printf("%c",s2[i]);
printf("\n");
}
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator