#PCBTAM0000006. Tab và xuống dòng (Tabs and Newlines)
Tab và xuống dòng (Tabs and Newlines)
Tabs and Newlines
Version: Phuoc Hung OJ Extended
Problem Statement
Given two text lines and , produce two output lines whose fields are separated by a horizontal tab character (U+0009):
- First line: , one tab, then .
- Second line: , one tab, then .
A tab is one character, not a sequence of spaces. Preserve the input strings even when one is empty.
Input
The first line contains ; the second contains . Either string may be empty.
Output
Print exactly two lines in the specified order, inserting one tab between the fields on each line.
Subtasks
- Subtask 1 (100 points): characters.
Examples
Example 1
Input
A
B
Output
A B
B A
Explanation. The first line is A, a tab, B; the second line swaps the two fields.
Example 2
Input
X
Output
X
X
Explanation. With empty , the first line begins with a tab and the second ends with a tab.
Example 3
Input
Xin
Chào
Output
Xin Chào
Chào Xin
Explanation. Keep Xin and Chào unchanged and separate them with actual tabs, not spaces.