快速切题 cf118A
这教导人们一定要看题,要看题,元音包含了‘y’,完毕,要看题啊
#include <cstring> #include <cstdio> #include <cctype> using namespace std; char buff[1001]; int main(){ scanf("%s",buff); for(int i=0;buff[i];i++){ buff[i]=tolower(buff[i]); if(buff[i]=='a'||buff[i]=='o'||buff[i]=='i'||buff[i]=='e'||buff[i]=='u'||buff[i]=='y'){continue;} else { printf(".%c",buff[i]); } } printf("\n"); return 0; }