| # | Problem | Pass Rate (passed user / total user) |
|---|---|---|
| 11540 | animals |
|
| 11543 | number reverse and average |
|
Description
In order to have a mass production of Jinkela, American Shengdiyage Agriculture Group does the research of the ecosystem of various kinds of animals and observes their behavior when being raised together.
In a cage, there are chickens, cows and alpacas. You want to know the numbers of these three kinds of animals respectively. However, you are not a scientist of the group, and you can only get the following information:
1. total number of the stomachs of all the animals
2. total number of the legs of all the animals
3. total number of the tails of all the animals
So smart are you that you know a chicken has two legs and one stomach, a cow has four legs and four stomachs, an alpaca has four legs and three stomachs, and these three kinds of animals all have only one tail. Please find out the numbers of the three kinds of animals respectively.
Input
There is only one line in the input containing three number A, B, C separated by blank. A is the total number of stomachs, B is the total number of legs, C is the total number of tails.
(1 <= A, B, C <= 1 * 10^8)
Output
Please output three numbers separated by a blank, which represent the number of chickens, cows, alpacas from left to right, and there is a new line character at the end.
(The number of the animals must be an integer that is greater or equal to 0)
Sample Input Download
Sample Output Download
Tags
Discuss
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.