klxs123


私信TA

用户名:klxs123

访问量:2422

签 名:

等  级
排  名 5413
经  验 1482
参赛次数 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 人评分

看不懂代码?想转换其他语言的代码? 或者想问其他问题? 试试问问AI编程助手,随时响应你的问题:

编程语言转换万能编程问答  

代码解释器

代码纠错

SQL生成与解释

  评论区

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