#PCBTAM0000001. Độ dài chuỗi (String Length)
Độ dài chuỗi (String Length)
String Length
Version: Phuoc Hung OJ Extended
Problem Statement
You are given a text string . Every letter, digit, punctuation mark, space, and tab counts as a character. A Unicode code point, including a precomposed Vietnamese character, counts once regardless of its UTF-8 byte length.
Determine the number of characters in . Do not count the line terminator.
Input
The input consists of one line containing . The line may be empty. Preserve all leading, trailing, and internal spaces.
Output
Print one integer: the number of characters in (its Python 3 string length).
Subtasks
- Subtask 1 (100 points): Unicode characters.
Examples
Example 1
Input
A B
Output
3
Explanation. A B consists of A, one space, and B: characters.
Example 2
Input
Output
0
Explanation. The input line is empty, so its character count is .
Example 3
Input
Đắk Lắk
Output
7
Explanation. Đắk Lắk contains Đ, ắ, k, a space, L, ắ, k: Unicode characters, not seven UTF-8 bytes.