| # | Problem | Pass Rate (passed user / total user) |
|---|---|---|
| 12028 | Caterpillar2 |
|
| 12029 | Caesar salad 2 |
|
| 12032 | decimal to ternary |
|
Description
Have you even seen the Caterpillar text?
here it is:
..╚⊙ ⊙╝..
.╚═(███)═╝
..╚═(███)═╝
..╚═(███)═╝
...╚═(███)═╝
..╚═(███)═╝
..╚═(███)═╝
...╚═(███)═╝
....╚═(███)═╝
.....╚═(███)═╝
....╚═(███)═╝
....╚═(███)═╝
....╚═(███)═╝
...╚═(███)═╝
...╚═(███)═╝
....╚═(███)═╝
.....╚═(███)═╝
.....╚═(███)═╝
....╚═(███)═╝
.....╚═(███)═╝
......╚═(███)═╝
.....╚═(███)═╝
.....╚═(███)═╝
.....╚═(███)═╝
.....╚═(███)═╝
.....╚═(███)═╝
.....╚═(███)═╝
......╚═(███)═╝
.....╚═(███)═╝
.....╚═(███)═╝
......╚═(███)═╝
.....╚═(███)═╝
....╚═(███)═╝
.....╚═(███)═╝
....╚═(███)═╝
....╚═(███)═╝
.....╚═(███)═╝
......╚═(███)═╝
.....╚═(███)═╝
.....╚═(███)═╝
.....╚═(███)═╝
....╚═(███)═╝
...╚═(███)═╝
...╚═(███)═╝
..╚═(███)═╝
...╚═(███)═╝
....╚═(███)═╝
...╚═(███)═╝
....╚═(███)═╝
....╚═(███)═╝
...╚═(███)═╝
....╚═(███)═╝
...╚═(███)═╝
..╚═(███)═╝
.╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
.╚═(███)═╝
.╚═(███)═╝
..╚═(███)═╝
...╚═(███)═╝
..╚═(███)═╝
...╚═(███)═╝
...╚═(███)═╝
....╚═(███)═╝
...╚═(███)═╝
....╚═(███)═╝
.....╚═(███)═╝
......╚═(███)═╝
.....╚═(███)═╝
......╚═(███)═╝
......╚═(███)═╝
.....╚═(███)═╝
......╚═(███)═╝
.....╚═(███)═╝
......╚═(███)═╝
.......╚═(███)═╝
.......╚═(███)═╝
......╚═(███)═╝
......╚═(███)═╝
......╚═(███)═╝
......╚═(███)═╝
......╚═(███)═╝
.......╚═(███)═╝
......╚═(███)═╝
.....╚═(███)═╝
......╚═(███)═╝
.......╚═(███)═╝
.......╚═(███)═╝
......╚═(███)═╝
.....╚═(███)═╝
.....╚═(███)═╝
.....╚═(███)═╝
.....╚═(███)═╝
.....╚═(███)═╝
......╚═(███)═╝
.......╚═(███)═╝
.......╚═(███)═╝
........╚═(███)═╝
.......╚═(███)═╝
.......╚═(███)═╝
......╚═(███)═╝
......╚═(███)═╝
......╚═(███)═╝
.....╚═(███)═╝
....╚═(███)═╝
....╚═(███)═╝
...╚═(███)═╝
...╚═(███)═╝
...╚═(███)═╝
..╚═(███)═╝
...╚═(███)═╝
..╚═(███)═╝
..╚═(███)═╝
..╚═(███)═╝
...╚═(███)═╝
....╚═(███)═╝
...╚═(███)═╝
..╚═(███)═╝
.╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
.╚═(███)═╝
.╚═(███)═╝
.╚═(███)═╝
.╚═(███)═╝
.╚═(███)═╝
..╚═(███)═╝
..╚═(███)═╝
..╚═(███)═╝
..╚═(███)═╝
..╚═(███)═╝
..╚═(███)═╝
.╚═(███)═╝
..╚═(███)═╝
.╚═(███)═╝
..╚═(███)═╝
.╚═(███)═╝
..╚═(███)═╝
..╚═(███)═╝
.╚═(███)═╝
..╚═(███)═╝
.╚═(███)═╝
..╚═(███)═╝
..╚═(███)═╝
...╚═(███)═╝
..╚═(███)═╝
...╚═(███)═╝
..╚═(███)═╝
.╚═(███)═╝
.╚═(███)═╝
..╚═(███)═╝
.╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
.╚═(███)═╝
.╚═(███)═╝
.╚═(███)═╝
.╚═(███)═╝
..╚═(███)═╝
.╚═(███)═╝
.╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
.╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
.╚═(███)═╝
.╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
.╚═(███)═╝
╚═(███)═╝
.╚═(███)═╝
..╚═(███)═╝
...╚═(███)═╝
...╚═(███)═╝
..╚═(███)═╝
..╚═(███)═╝
...╚═(███)═╝
...╚═(███)═╝
....╚═(███)═╝
...╚═(███)═╝
..╚═(███)═╝
...╚═(███)═╝
..╚═(███)═╝
.╚═(███)═╝
..╚═(███)═╝
.╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
.╚═(███)═╝
.╚═(███)═╝
..╚═(███)═╝
..╚═(███)═╝
.╚═(███)═╝
.╚═(███)═╝
╚═(███)═╝
.╚═(███)═╝
..╚═(███)═╝
..╚═(███)═╝
..╚═(███)═╝
.╚═(███)═╝
..╚═(███)═╝
...╚═(███)═╝
....╚═(███)═╝
...╚═(███)═╝
...╚═(███)═╝
..╚═(███)═╝
..╚═(███)═╝
.╚═(███)═╝
..╚═(███)═╝
.╚═(███)═╝
╚═(███)═╝
.╚═(███)═╝
..╚═(███)═╝
..╚═(███)═╝
..╚═(███)═╝
..╚═(███)═╝
...╚═(███)═╝
..╚═(███)═╝
..╚═(███)═╝
..╚═(███)═╝
..╚═(███)═╝
...╚═(███)═╝
...╚═(███)═╝
....╚═(███)═╝
.....╚═(███)═╝
......╚═(███)═╝
.....╚═(███)═╝
.....╚═(███)═╝
.....╚═(███)═╝
.....╚═(███)═╝
......╚═(███)═╝
.......╚═(███)═╝
........╚═(███)═╝
.........╚═(███)═╝
..........╚═(███)═╝
...........╚═(███)═╝
..........╚═(███)═╝
...........╚═(███)═╝
............╚═(███)═╝
............╚═(███)═╝
............╚═(███)═╝
.............╚═(███)═╝
..............╚═(███)═╝
..............╚═(███)═╝
..............╚═(███)═╝
.............╚═(███)═╝
..............╚═(███)═╝
.............╚═(███)═╝
.............╚═(███)═╝
..............╚═(███)═╝
.............╚═(███)═╝
............╚═(███)═╝
.............╚═(███)═╝
..............╚═(███)═╝
...............╚═(███)═╝
..............╚═(███)═╝
...............╚═(███)═╝
................╚═(███)═╝
.................╚═(███)═╝
.................╚═(███)═╝
................╚═(███)═╝
...............╚═(███)═╝
..............╚═(███)═╝
.............╚═(███)═╝
.............╚═(███)═╝
.............╚═(███)═╝
..............╚═(███)═╝
..............╚═(███)═╝
...............╚═(███)═╝
................╚═(███)═╝
...............╚═(███)═╝
...............╚═(███)═╝
................╚═(███)═╝
.................╚═(███)═╝
................╚═(███)═╝
...............╚═(███)═╝
..............╚═(███)═╝
...............╚═(███)═╝
...............╚═(███)═╝
................╚═(███)═╝
................╚═(███)═╝
...............╚═(███)═╝
................╚═(███)═╝
...............╚═(███)═╝
...............╚═(███)═╝
................╚═(███)═╝
...............╚═(███)═╝
................╚═(███)═╝
.................╚═(███)═╝
.................╚═(███)═╝
.................╚═(███)═╝
..................╚═(███)═╝
...................╚═(███)═╝
..................╚═(███)═╝
...................╚═(███)═╝
....................╚═(███)═╝
...................╚═(███)═╝
....................╚═(███)═╝
.....................╚═(███)═╝
.....................╚═(███)═╝
.....................╚═(███)═╝
.....................╚═(███)═╝
....................╚═(███)═╝
....................╚═(███)═╝
.....................╚═(███)═╝
.....................╚═(███)═╝
.....................╚═(███)═╝
....................╚═(███)═╝
...................╚═(███)═╝
..................╚═(███)═╝
..................╚═(███)═╝
.................╚═(███)═╝
................╚═(███)═╝
...............╚═(███)═╝
..............╚═(███)═╝
.............╚═(███)═╝
..............╚═(███)═╝
.............╚═(███)═╝
............╚═(███)═╝
.............╚═(███)═╝
............╚═(███)═╝
............╚═(███)═╝
.............╚═(███)═╝
..............╚═(███)═╝
...............╚═(███)═╝
................╚═(███)═╝
.................╚═(███)═╝
................╚═(███)═╝
...............╚═(███)═╝
...............╚═(███)═╝
..............╚═(███)═╝
As you know , the Caterpillar can be very long . just like some input .
Give you the looking of the Caterpillar . output the Caterpillar.
Hint : loop
Input
The first line contains an integer L, 0 ≤ L ≤ 100000, which indicates that there will be L lines following.
Each i of the following L lines gives an integer Li, 0 ≤ Li ≤ 100000.
Output
A long long caterpillar .
First, print "..╚⊙ ⊙╝.." in the beginning !!
Then, for every input Li, output Li times '.' and add "╚═(███)═╝" in the end together with a '\n'.
The first taskcase is sample output.
Sample Input Download
Sample Output Download
Tags
Discuss
Description
You, the businessman, received a message from Caesar for salad.
You opened the letter, and quickly found that the message was encrypted. Feeling confused, you asked the guy who gave you the letter. That guy told you 1. the message was encrypted using Caesar cipher, and 2. the corresponding number for shifting is N
As a smart businessman, could you figure out what did Caesar wanted to tell you?
The encrypt rule is as follow:
For each English character inside his letter, shift it with a fixed number N in positive/negative direction.
For example,
- N = 2, then "IJK" will become "KLM"
- N = 3, then "IJK" will become "LMN"
- N = -2, then "AJK" will become "YHI"
- We do the shifting in a cyclic manner, that is, perform left shift 1 on "A" will become "Z"; right shift 2 on "Y" will become "A"
The decrypt rule is as follow:
Input
Input consists of three UPPERCASE English characters representing the encrypted message, and an integer N, seperated by a whitespace character.
It is guaranteed that -2147483648 <= N <= 0.
Output
Print out the decrypted message in a single line.
You need to print "\n" at the end of the answer.
Sample Input Download
Sample Output Download
Tags
Discuss
Description
Input one positive integer, X. The task is to translate the decimal number X into ternary (三進位) number, and output the result.
X is smaller than 1000.
Input
One positive integer, X. X is smaller than 1000.
Output
The ternary representation of the input number X.
Note that you need to print a '\n' at the end of the bit string.