1741 - I2P(I)2019_Hu_hw1 Scoreboard

Time

2019/09/16 22:00:00 2019/09/23 18:00:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
12365 A Cute Jade Rabbit
12369 New Operator
12376 Baby Password

12365 - A Cute Jade Rabbit   

Description

The Jade Rabbit, also called the Moon Rabbit, is a rabbit that lives on the moon. In Chinese folklore, it is often portrayed as a companion of the moon goddess Chang's, constantly pounding the elixir of life for her.

In this assignment, your need to draw a cute jade rabbit with ascii text like sample output.

 (\   /)
 ( ^  ^)
c("")("")

This rabbit is made up of three lines :

The first line includes 4 whitespace , a pair of brackets (()), 1 left slash (\) and 1 right slash (/).

The second line includes 4 whitespace, a pair of brackets (()), 2 carets (^).

The third line includes 1 lower caser case c letter (c), two pair of brackets (())  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 rabbit in the problem description.

Sample Input  Download

Sample Output  Download

Tags




Discuss




12369 - New Operator   

Description

One day, a mathematician defined a new operator  and used it on his work. However, the mathematician didn't know how to write a program to make a computer calcuate the result. He decided to hire you to write a program for him.  The following shows how the new operator is defined.

new operator  : give two integer A,B (A is a three digit integer, B is a two digit integer). 

 B = (sum of all digits in A)  /  (sum of all digits in B)

ex:  123  23 = (1+2+3) / (2+3) = 1.20

note that : if use visual studio add #pragma warning(disable:4996) in first line to use scanf function

Input

Given two integer A, B (A is three-digit integer, B is two-digit integer)

Output

Print out the result of A  B (Note that your output should follow three rules)

rule1.  the length of the output string is exactly 13 character.

rule2.  the result value should be expressed as a floating point number round off to the 2nd decimal place. For example, 3.00 or 6.53

rule3.  print '\n' at the end of the output.

 

Sample Input  Download

Sample Output  Download

Tags




Discuss




12376 - Baby Password   

Description

You are a hacker in babyland.

In babyland, people set their passwords as their favorite uppercase character.

In order to prevent a "hacker" like you from stealing passwords by peeking at the database, the passwords are shifted by some integer (possibly zero or negative) before being stored.

For example, if the original password is the character 'A', then after shifting by '+2', the actual password recorded on the database will be the second character after 'A', which is 'C'.

Note that we will be dealing the alphabetic sequence as if it is a cycle, i.e., the letter before 'A' is 'Z', and the letter after 'Z' is 'A'.

Hence, if the original password is the character 'A', and the shift is '-1', the new password will be 'Z'.

You have stolen the shifted password stored on the database, denoted as C.

You also know the shift that had been applied to the original password, denoted as D.

Show the original password, followed by a newline character.

 

 

Input

C D

 

(Note that D may be in form "-X" or "+X", where X is an integer between 0 and 25)

Output

The original password, with a trailing newline character.

Sample Input  Download

Sample Output  Download

Tags




Discuss