klxs123


私信TA

用户名:klxs123

访问量:2489

签 名:

等  级
排  名 5541
经  验 1489
参赛次数 1
文章发表 4
年  龄 22
在职情况 学生
学  校 泰山学院
专  业 电子信息

  自我简介:

#include<stdio.h>

int main()

{

    int a,flag1=0,flag2=0,flag3=0,flag4=0;

    char c;

    while((c=getchar())!='\n')

    {

        a=(int)c;

        if(a>=65&&a<=90) flag1++;

        if(a>=97&&a<=122) flag2++;

        if(a>=48&&a<=57) flag3++;

        if(a==32) flag4++;

    }

    printf("%d %d %d %d",flag1,flag2,flag3,flag4);

    return 0;

}


 

0.0分

0 人评分

  评论区

时间超限为什么?
2018-07-03 17:46:22
  • «
  • 1
  • »