提交时间:2019-12-22 19:43:10
运行 ID: 3839
#include<iostream> using namespace std; int main(){ int sb; char sjb[50]={0}; cin>>sb; for(int gd=0;gd<n;gd++){ cin>>sjb[gd]; for(int pp;pp<sjb[gd];pp++){ if(sjb[pp]=='a'||sjb[pp]=='e'||sjb[pp]=='i'||sjb[pp]=='o'||sjb[pp]=='u'){ sjb[pp]-=32; }else{ if((sjb[pp]>='a' && sjb[pp]<='z')||sjb[pp]=='A'||sjb[pp]=='E'||sjb[pp]=='I'||sjb[pp]=='O'||sjb[pp]=='U') continue; }else{ sjb[pp]+=32; } } } cin>>sjb[pp]>>endl; return 0; }