题目链接:http://bailian.openjudge.cn/practice/2975
#include<stdio.h>
#include<string.h>
int main()
{
char a[]="VWXYZABCDEFGHIJKLMNOPQRSTU";
char s[201],A[12];
int i;
while(1)
{
gets(A);
if(strcmp(A,"ENDOFINPUT")==0)
break;
gets(s);
gets(A);
for(i=0;s[i]!='\0';i++)
{
if(s[i]>='A'&&s[i]<='Z')
printf("%c",a[s[i]-'A']);
else
printf("%c",s[i]);
}
printf("\n");
}
return 0;
}