Keystroke Count
Easy · rating 900 · Strings, Math
On a phone, typing a lowercase letter is one key press, but an uppercase letter also needs a Shift — two presses. Every other character is one press. Read a line and print the total key presses.
Related problems
- Product of Digits — Easy
- Sum of Digits — Easy
- GC Content — Easy
- Binary to Decimal — Medium
- RGB to Hex Color — Easy
- IP Address to Integer — Medium