P4526 [Template] Adaptive Simpson's Method 2
Description
Compute the integral
$\displaystyle{\int_0^\infty x^{\frac{a}{x}-x}\mathrm{d}x}$
Keep $5$ digits after the decimal point. If the integral diverges, output $\text{orz}$.
Input Format
One line containing a real number, the value of $a$.
Output Format
One line: the integral value or $\text{orz}$.
Explanation/Hint
$|a|\le50$.
Please pay attention to the time and memory limits.
Translated by ChatGPT 5