912-24 guruh Dasturlash amaliyot #1
Contest Problems
Problem Tasks
# | Date | State |
---|
Not Contest
# | Date | State |
---|
G. Funksiya5
Time limit : 1000 ms
Memory limit : 64 mb
$s,t$ haqiqiy sonlar berilgan. Hisoblang: $h(s,t) + max(h(s - t,st),h(s-t,s + t)) + h(1,1)$ bu yerda
$$h(a,b) = \frac{a}{b^2 + 1} + \frac{b}{a^2 + 1} - (a - b) ^ 3$$
Kiruvchi ma`lumotlar: $s,t$-haqiqiy son ($1\le y \le 50$)
Chiquvchi ma`lumotlar: Masala yechimi $10^{-2}$ aniqlikda chiqarilsin
Input |
---|
4.86 1.85 |
Output |
189.79 |
Input |
---|
5.94 0.75 |
Output |
-131.25 |