Letter Counter


Submit solution

Points: 20
Time limit: 1.0s
Memory limit: 64M

Author:
Problem type

題目說明

<1141檢定考題>
輸入一個字串(只包含英文大小寫字母),
請計算字串中大寫及小字母的數量,
並依照格式輸出:
Uppercase: (數量)
Lowercase: (數量)

輸入

一個字串(只包含英文大小寫字母)

輸出

請計算字串中大寫及小字母的數量後依照格式輸出

範例測資1

輸入:

AbCdEfg

輸出:

Uppercase: 3
Lowercase: 4

範例測資2

輸入:

HELLO

輸出:

Uppercase: 5
Lowercase: 0

範例測資3

輸入:

world

輸出:

Uppercase: 0
Lowercase: 5

Comments

There are no comments at the moment.