2072. 统计空格
1000ms
256MB
简单
基础语法通关系列
题目描述
从键盘输入一个字符串(含空格),统计空格的个数。
输入格式
输入一个字符串,长度不超过1000;
输出格式
计算字符串中空格的个数,并输出
样例 1
输入 (Input)
There are 5 apples and 8 oranges
输出 (Output)
6
› 输入 stdin
CtrlShiftEnter
‹ 输出 stdout
错误 stderr
操作成功