#include<stdio.h>#include<string.h>
int main(){
int row;
scanf("%d",&row);
while(row--){
char s[100];
scanf("%s",s);
for(int i=0;i<strlen(s);i++){
if(s[i]>='a'&&s[i]<='z') printf("%c",s[i]-32);
if(s[i]>='A'&&s[i]<='Z') printf("%c",s[i]+32);
}
printf("\n");
}
}

被折叠的 条评论
为什么被折叠?



