Gửi bài giải
Điểm:
1,00 (OI)
Giới hạn thời gian:
1.0s
Giới hạn bộ nhớ:
256M
Input:
stdin
Output:
stdout
Nguồn bài:
Dạng bài
Ngôn ngữ cho phép
C, C++, Java, Kotlin, Pascal, PyPy, Python, Scratch
Given a string of characters consisting of letters and spaces, with a length ~n~ where ~n≤10^5~, remove any extra spaces so that there is exactly one space between words.
Input
- A single line containing the string of characters.
Output
- The string after removing extra spaces.
Sample Input
Jack really loves children!
Sample Output
Jack really loves children!
Bình luận