首页 > 其他 > 详细

NOIP2018(普及组)T1标题统计(title) 题解

时间:2018-11-18 11:03:58      阅读:266      评论:0      收藏:0      [点我收藏+]

NOIP2018(普及组)T1标题统计(title) 题解

 

技术分享图片

[代码(AC)]

 

 1 #include <iostream>
 2 #include <cstdio>
 3 #include <cmath>
 4 #include <string>
 5 #include <cstring>
 6 #include <algorithm>
 7 using namespace std;
 8 char s[100];
 9 int main (){
10     gets(s);
11     int len=strlen(s);
12     int ans=0;
13     for(int i=0;i<len;++i){
14         if(s[i]!= &&s[i]!=\n)++ans;
15     }
16     printf("%d",ans);
17     return 0;
18 }

 2018-11-18 10:13:03

NOIP2018(普及组)T1标题统计(title) 题解

原文:https://www.cnblogs.com/zjd-ac/p/9977103.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!