游客 Signup | Login
中文 | En

2116 - 大写字母统计

通过次数

0

提交次数

0

Time Limit : 1 秒 Memory Limit : 128 MB

 写一个函数,找出给定字符串中大写字母字符(即'A'-'Z'这26个字母)的个数(如字符串”China Computer Wrold”中大写字母字符的个数为3个)。要求用子函数和Driver的形式编写代码。

input:

helloABCworld
output:
3

Input

字符串,可能包含空格

Output

大写字母的个数

Examples

Input Format

hello ABC world

Output Format

3