#include <stdio.h>
int main() {
char c;
while (scanf("%c", &c) == 1 && c != '\n') {
if (c >= 'A' && c <= 'Z') {
c = 'Z' - (c - 'A');
}
printf("%c", c);
}
return 0;
}
代码来自:https://yunjinqi.top/article/190