HDU/2026/main.c
Saturneric 0525ffad24 Add.
2020-09-01 00:48:58 +08:00

19 lines
331 B
C

#include <stdio.h>
int main(void){
char word[64], ch;
int if_word = 0, if_work = 1;
while(1){
ch = getchar();
if(ch == EOF) break;
else if(ch < 32) if_work = 1;
if(ch > 31){
if(if_work) ch -= 32, if_work = 0;
if(if_word) ch -= 32, if_word = 0;
if(ch == ' ') if_word = 1;
}
printf("%c",ch);
}
return 0;
}