2087 - I2P(I)2020_Yang_HW1 Scoreboard

Time

2020/09/14 00:00:00 2020/09/22 23:59:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
11543 number reverse and average
12353 C is for Cat

11543 - number reverse and average   

Description

The input is a three-digit integer N that consists of digits 1-9 except 0. For example, 489 is such a number. The task is to reverse the order of the digits of N to get a new three-digit number M, and compute the average of the N and M. For example, if N is 489, then M is 984, and the answer should be 736.5.

Input

A three-digit integer consisting of 1-9 except 0

Output

The average of the input number and its reversal
The answer should be expressed as a floating point number with precision to the first decimal place. For example, 333.0 or 736.5

Note that you do not need to print ‘\n’ at the end of the output.

Sample Input  Download

Sample Output  Download

Tags




Discuss




12353 - C is for Cat   

Description

Your very first programming assignment is to print a cat :

 ^   ^      
(=-w-=)----?
  " "   " " 

This cat is made up of three lines :

The first line includes 10 whitespace ( ) and 2 carets (^).

The second line includes a pair of brackets (()), 2 equal signs (=), 6 hyphens (-), 1 lower case w letter (w), and 1 question mark (?).

The third line includes 8 whitespace ( ) and 4 quotation marks (").

Remember to put a new line character in the end of each line.

(gray dots represents whitespace characters)

Very Important Notes

  • Getting compile error? Having problem printing quotation mark (")? Maybe this link can help you.

  • Getting Wrong Answer? Make sure you don't miss any whitespace ( ) or new line (\n) character.

Input

This is no input for this problem.

Output

Print the cat in the problem description.

Sample Input  Download

Sample Output  Download

Tags




Discuss