#PCBTAM0000026. Tổng độ dài ba dòng (Lengths of Three Lines)
Tổng độ dài ba dòng (Lengths of Three Lines)
Lengths of Three Lines
Version: Phuoc Hung OJ Extended
Problem Statement
Given three text lines , , and , determine each line's character count and the total character count when they are concatenated in the order , , .
Do not insert separators. The line breaks separating the input fields do not count toward any length.
Input
Three lines contain , , and , respectively. Each may be empty or contain spaces or Unicode characters.
Output
Print four space-separated integers: the lengths of , , , and their concatenation.
Subtasks
- Subtask 1 (100 points): Unicode characters.
Examples
Example 1
Input
A B
Đ
Output
3 1 0 4
Explanation. A B has length , Đ length , and the final line length ; total .
Example 2
Input
Output
0 0 0 0
Explanation. All three lines are empty, so every length and the total equal .
Example 3
Input
Xin
Chào
!
Output
3 4 1 8
Explanation. Xin has length , Chào length , and ! length ; total .