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