[恢]hdu 1048
2011-12-16 08:04:18
地址:http://acm.hdu.edu.cn/showproblem.php?pid=1048
题意:解码。。。没啥好说的。
代码:
# include <stdio.h>
# include <string.h>
char ts[] = "VWXYZABCDEFGHIJKLMNOPQRSTU" ;
char str[210] ;
void gao()
{
int i ;
for (i = 0 ; str[i] ; i++)
{
if (str[i] >= 'A' && str[i] <= 'Z')
putchar (ts[str[i]-'A']) ;
else putchar (str[i]) ;
}
puts ("") ;
}
int main ()
{
while (gets(str) && strcmp(str, "ENDOFINPUT"))
{
gets(str) ;
gao() ;
gets(str) ;
}
return 0 ;
}