题解 | #[NOIP2018]标题统计#
[NOIP2018]标题统计
https://www.nowcoder.com/practice/b14b87bc6a4547a6839e0a5867c98dba
#include <stdio.h> int main() { char ch; int count = 0; // 输入字符串时,%前面加个空格会自动忽略所有空白字符 while (~scanf(" %c", &ch)) { count++; } printf("%d", count); return 0; }