NOJ/64/main.c
Saturneric 52668c4122 Add.
2020-09-01 00:46:43 +08:00

16 lines
353 B
C

#include <stdio.h>
#include <string.h>
int main(void){
char string[1024];
gets(string);
int len = strlen(string), i;
for(i = 0; i < len; i++){
if(string[i] >= 'a' && string[i] <= 'z') printf("%c",string[i]-3);
else if(string[i] >= 'A' && string[i] <= 'Z') printf("%c",string[i]+3);
else printf("%c",string[i]);
}
printf("\n");
return 0;
}