代码
#include <stdio.h>
#include <ctype.h>
#define N 100
int
main(void)
{
    char c;
    int alpha = 0, num = 0, space = 0, other = 0;
    while (1)
    {
        c = getchar();
        if (c == '\n')
            break;
        if (isalpha(c))
            alpha++;
        else if (isalnum(c))
            num++;
        else if (isspace(c))
            space++;
        else
            other++;
    }
    printf("%d\n%d\n%d\n%d", alpha, num, space, other);
    return 0;
}
      信息
- 递交者
 - 类型
 - 自测
 - 题目
 - 7.9统计个数
 - 语言
 - C
 - 递交时间
 - 2018-10-26 11:26:46
 - 评测时间
 - 2018-10-26 11:26:46
 - 评测机
 
- 分数
 - 0
 - 总耗时
 - ≥1003ms
 - 峰值内存
 - ≥180.0 KiB