http://acm.hdu.edu.cn/showproblem.php?pid=1328

最近发生了好多事,一言难尽。水一道。

View Code
#include <stdio.h>
int main()
{
    int t ;
    scanf("%d",&t) ;
    for(int cas=1;cas<=t;cas++)
    {
        char str[51] ;
        scanf("%s",str) ;
        printf("String #%d\n",cas) ;
        for(int i=0;str[i];i++)
            if(str[i]=='Z')
                printf("A") ;
            else
                printf("%c",str[i]+1) ;
        printf("\n\n") ;
    }
    return 0 ;
}