PAT-B1033

#include
#include
char s1[100010];
int main(){
int i, j, len, big=0, ascall[130], outflag=0;
memset(ascall,0,sizeof(ascall));
gets(s1);
len=strlen(s1);
for(i=0;i='A' &&s1[i]<='Z')s1[i]=s1[i]+32;
	ascall[s1[i]]=1;
}
gets(s1);
len=strlen(s1);
for(i=0;i='A'&&s1[i]<='Z'){
	     if(big==0&&ascall[s1[i]+32]==0){printf("%c",s1[i]);}
	}
	else if(ascall[s1[i]]==0)printf("%c",s1[i]);

}

printf("\n");

return 0;
}

你可能感兴趣的:(PAT乙级)