/* スペース、カンマ、ピリオドの数 */ #include #include #define MAXSIZE 1024 int main(void) { char str[MAXSIZE]; int i, len, n_space=0, n_comma=0, n_punct=0; fgets(str, sizeof(str), stdin); len = strlen(str); for(i=0; i