提交时间:2019-12-21 20:35:39
运行 ID: 3774
#include<stdio.h> #include<string.h> int main(){ int T; scanf("%d",&T); int i,j; char zimu[100]; for(i=0;i<T;i++){ scanf("%c",&zimu); int length=strlen(zimu); for(j=0;j<length;j++){ if(zimu=='a'||zimu=='e'||zimu=='i'||zimu=='o'||zimu=='u') printf("%c",zimu-32); else if(zimu=='A'||zimu=='E'||zimu=='I'||zimu=='O'||zimu=='U') printf("%c",zimu); else if(zimu>='B'&&zimu<='D'||zimu>='F'&&zimu<='H'||zimu>='J'&&zimu<='N'||zimu>='P'&&zimu<='T'||zimu>='V'&&zimu<='Z') printf("%c",zimu+32); else printf("%c",zimu); } } return 0; }