| # | Problem | Pass Rate (passed user / total user) |
|---|---|---|
| 15003 | Romeo and Juliet |
|
| 15004 | Temperature Madness (II) |
|
Description
Romeo and Juliet are lovers from two feuding families. Because their relationship must remain secret, they communicate using a special code. They write five ASCII numbers, which are then converted into their corresponding characters using an ASCII table (https://www.ascii-code.com/).
The decoding process works as follows:
- Read five ASCII numbers.
- Convert each number into its corresponding character using ASCII.
- Output the five characters in the same order.
Since manually converting ASCII numbers into text is troublesome, Romeo decides to write a program to automate the process.
Please help Romeo complete the program so that he can communicate with his beloved Juliet!
Input
5 integer number
Output
The corresponding word
Sample Input Download
Sample Output Download
Tags
Discuss
Description
Dr. Fajardo has invented a new unit for measuring temperature. To prevent any confusion between Celsius and Fahrenheit, he decides to invent a metric called Timble. He believes that all countries should adopt this unit and plans to propose it at the next UN conference.
Timble is calculated is as follows:
Given a temperature Celsius:
- Convert it to Fahrenheit.
- Discard the decimal part of the resulting Fahrenheit temperature.
- Append the letter ‘AB’ to the resulting integer.
Below is an example of the how Timble is calculated:
1. Temperature in Celsius = 23
2. Temperature in Fahrenheit = (23 * 1.8) + 32 = 73.4
3. Discard the decimal part = 73
4. Append AB = 73AB
5. Therefore, the temperature in Timble is 73AB
Before presenting his proposal to the UN, he wants to write a program to automatically convert a temperature from Celsius to Timble.
Please help Dr. Fajardo!
Input
A float C, representing the temperature in degrees Celsius, where:
-100 ≤ C ≤ 100
Output
The corresponding temperature in Timble