cswork / OA打开练习工作台

VisaOA #1

Letter Case Difference

简单可在线判题

考点(AI 标注)字符串

Count the number of uppercase English letters in typedText minus the number of lowercase English letters.

输入格式

A non-empty string containing only English letters A-Z and a-z; length 1..200000 (site-added).

输出格式

Output the uppercase count minus the lowercase count.

样例 1

输入:

AbCd

输出:

0

样例 2

输入:

Aaa

输出:

-1

样例 3

输入:

xyzXYZ

输出:

0