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
Mr. Hai received a love letter from a beautiful anonymous girl, but in the letter, she intentionally mixed uppercase and lowercase letters. She requests Mr. Hai to reverse the case of each character (convert uppercase to lowercase and lowercase to uppercase). Mr. Hai likes the idea but is busy preparing students for exams and doesn't want to spend time on this. Can you write a program to help Mr. Hai?
Input:
- A single line containing a string ~S~ that needs to be converted ~(1 \leq |S| \leq 10^5 )~.
Output:
- The converted string after reversing the case of each character.
Sample Input
jACK - j97
Sample Output
Jack - J97
Bình luận