题解 | #[NOIP2018]标题统计#
[NOIP2018]标题统计
https://www.nowcoder.com/practice/b14b87bc6a4547a6839e0a5867c98dba
#include <stdio.h> int main() { char a,count=0; while(~scanf("%c",&a)) { if(a!=' '&&a!='\n') count++; } printf("%d\n",count); return 0; }
[NOIP2018]标题统计
https://www.nowcoder.com/practice/b14b87bc6a4547a6839e0a5867c98dba
#include <stdio.h> int main() { char a,count=0; while(~scanf("%c",&a)) { if(a!=' '&&a!='\n') count++; } printf("%d\n",count); return 0; }
相关推荐