| # | Problem | Pass Rate (passed user / total user) |
|---|---|---|
| 12365 | A Cute Jade Rabbit |
|
| 12870 | Simple calculator |
|
| 12871 | Baby Password 2 |
|
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
Description
Howard, a freshman major in computer science, has an idea after learning arithmetic operator in the programming course. He wants to write a C program to make a simple calculator. He had tried around the clock but ended up realizing that it is not as easy as he have expected. So he asks you for help to write a program that can do simple calculation.
Input
Input contains two real numbers a, b (0 <= a, b < 1000, up to three decimal places) and one arithmetic operator(+, -, *, /) in the middle.
Output
Print the answer of the calculation. That is,
- If the operation is "+", print a plus b.
- If the operation is "-", print a minus b.
- If the operation is "*", print a times b.
- If the operation is "/", print a divided by b.
Print the number with exactly three digits after the decimal points that rounds to the third decimal place.
If the answer is illegal, that is divided by zero, print "Error". (Without quotation marks)
Remember to print a newline character '\n' at the end.
Use double instead of float to prevent from floating point precision error.
Sample Input Download
Sample Output Download
Tags
Discuss
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) and then changed the case before being stored.
For example, if the original password is the character 'A', then after shifting by '+2' and changing the case, the actual password recorded on the database will be the second character after 'A', which is 'c'.
Original + Shift = Actual
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.
Note: Be aware of char overflow.
Input
The input will consist of the actual password and the shift
C D
(Note that C may be uppercase or lowercase character, 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.