#T565. 系统说明书
系统说明书
Description
We refer to users who use CodesOnline as COIers. The OJ (Online Judge) provides a usage guide for newly joined COIers. However, since Xiao Ming, a COIer, is a citizen of Country B and cannot understand the language of Country A, he hopes you can programmatically explain the OJ's usage to him.
The difference between the languages of Country A and Country B is:
Country A's language consists entirely of lowercase letters, while Country B's language consists entirely of uppercase letters.
Input Format
The input consists of a single line,
which is a string (containing no more than 100 characters, with only letters and spaces in the input).
Output Format
The output has two lines:
- The first line directly outputs the converted text in Country B's language.
- However, since Xiao Ming reads from right to left, the second line outputs the converted text in Country B's language in reverse order.
Example Code
input_str = input().strip()
upper_str = input_str.upper()
print(upper_str)
print(upper_str[::-1])
Explanation
- The input string is converted to uppercase to match Country B's language.
- The first output line is the uppercase string.
- The second output line is the reversed version of the uppercase string.
Sample Input
hello world
Sample Output
HELLO WORLD
DLROW OLLEH
if you need to use codesonline first you need to sign up a account
IF YOU NEED TO USE CODESONLINE FIRST YOU NEED TO SIGN UP A ACCOUNT
ACCOUNT A UP SIGN TO NEED YOU FIRST CODESONLINE USE TO NEED YOU IF
Hint
The words should be output in reverse order, not the letters.
Source
Original problem by CodesOnline