It is interesting to know whether eΠ is larger or smaller than Πe.
Another interesting question is this:
What is the value of x when xΠ=Πx?
Obviously x=Π would be one solution.
But are there other solutions?
Formally, given a number a and constraints xa=ax, a>1, x>1,
please find the solutions of x other than x=a.
The first line has one integer T, which is the number of test cases.
Each test case are in one line, which contains the number a.
Note that all numbers in the input would have at most four digits after the decimal point.
For each test case, please output one line containing the solutions of x, round to four digits after the decimal point.
If there is no solution other than x=a, please output "NO".
If there are more than one solution, please output all of them in increasing order, separated by a white space.
Clarification: If there are two different solutions which become the same after truncation, you have to treat them as different solutions.
2 2.0 4.0
4.0000 2.0000
Migrated from old NTUJ.
popo
No. | Testdata Range | Score |
---|