| # | Problem | Pass Rate (passed user / total user) |
|---|---|---|
| 9015 | Palindrome |
|
| 12402 | Hakka's Dream |
|
| 12406 | Hakka's Rank |
|
Description
Palindrome is a string that is identical to its reverse, like "level" or "aba". Check whether a given string is a palindrome or not.
Input
The input consists of multiple lines. Each line contains a string. The length of each string is less than 100000. The number of test case is less than 1000.
Output
For each test case, output "Yes" if it's a palindrome or "No" if it's not a palindrome in a line.
Sample Input Download
Sample Output Download
Tags
Discuss
Description
Everyone knows that Hakkanese are very frugal.
In order to clearly find out what they have spent in the whole month and compare monthly expenses,
they ask you to calculate the growth (or maybe decrease) of the expenses between months.
But they are too diligent to pay you salary,
so you must do the job for them for free. QQ
Given a integer T, represent the time they want to calculate the growth.
For next T lines, given you 2 integers, indicate the expense of two months.
Calculate the growth rate of the expenses.
If the growth is >= 5%, then output "(#`Д´)ノ" (without quotes) after the growth,
or if the growth is <= -5%, then output "(ゝ∀・)b" (without quotes) after the growth.
Otherwise, output "\^o^/" (without quotes) after the growth.
For example:
X=200, Y=177, then output " -11.50% (ゝ∀・)b" (without quotes).
ouo.
Input
Input contains only 2 lines.
Then for the next T lines, each line contains 2 integers X, Y,
represent the expenses of 2 months.
It is guarantee that:
1 <= T <= 10
1 <= X, Y <= 105
Output
Output contains only one line.
Round to the second decimal places.
Output format: XXXX.YY% [Emoticons].
That is, if the integer part is not long enough, you should add spaces at the left of the integer.
For example: " -11.50% (ゝ∀・)b" or " 8.00% (#`Д´)ノ" (Without quotes).
Remember to print a newline character after your output.
If the answer is -0.00%, you should output 0.00%.
Sample Input Download
Sample Output Download
Tags
Discuss
Description
The once a year Hakka's frugal competition is coming.
They want to know who is the most frugal participants, that is, who spend less money.
So, they need a scoreboard to rank every participants.
They ask you for a help.
But they are too frugal to pay you money.
So you have to help them for free. QQ
Given an integer N, which is the number of the participants.
And N integers Ai, Ai represent the money that the ith participant spend.
You should output the rank of each participant.
The less the participant spend, the higher the participant rank,
the rank is starting from 1, and if two participant spend same ammount of money, they must be at same rank.
For example, if N=5 and A = [5, 5, 1, 2, 6],
then you should output 3 3 1 2 5,
since the first and second participant spend same ammount of money,
so they tied at the third place.
ouo.
Input
Input contains 2 lines.
The first line contain a integer N, represent the number of participant.
And the second line contain N integer Ai, represent the money the ith participant spend.
It's is guarantee that 1 <= N <= 2000, and 1 <= Ai <= 10^9.
Output
Output contain 1 line.
The rank of each participant, and there should be a space between each rank.
Remember to add a newline character at the end of line.