#P4526. 【模板】自适应辛普森法 2

【模板】自适应辛普森法 2

Description

Compute the integral

$\displaystyle{\int_0^\infty x^{\frac{a}{x}-x}\mathrm{d}x}$

Keep 55 digits after the decimal point. If the integral diverges, output orz\text{orz}.

Input Format

One line containing a real number, the value of aa.

Output Format

One line: the integral value or orz\text{orz}.

2.33
1.51068

Hint

a50|a|\le50.

Please pay attention to the time and memory limits.

Translated by ChatGPT 5