1 #include <stdio.h>
 2 #include <stdlib.h>
 3 int main()
 4 {
 5     int c, space=0;
 6     while ((c=getchar())!=EOF){
 7         if (c==' ')
 8             ++space;
 9         else
10             space=0;
11         if (space<=1)
12             putchar(c);
13     }
14     system("pause");
15     return 0;
16 }

 

posted on 2020-04-23 21:39  杪杪  阅读(335)  评论(0)    收藏  举报