Similar Problems
00010045003700380039004000410042004300460035002012011202120312041205120700360061003400230033002200190018001600110010002100240026002700280029003000310032002500930088008900900091009200970094009500960098009901000086008700790085007200620063006400650066006700680070007100730084007600770078008000810082008300690075
0074. Sikl14
Time limit : 1000 ms
Memory limit : 64 mb
Berilgan ketma-ketlikni dastlabki $n$ ta xadi yig’indisini toping
$$S = x + \frac{x^3}{3!} + \frac{x^5}{5!} + ...+ \frac{x^{2n - 1}}{(2n - 1)!}$$
Kiruvchi ma’lumotlar:
ikkita butun son $n$ va $x$ $(0 \le n,x \le 9)$;
Chiquvchi ma’lumotlar:
$S$ – ketma-ketlikni dastlabki $n$ ta xadi yig’indisi $10^{-3}$ aniqlikda chiqarilsin.
Input |
---|
1 1 |
Output |
1.000 |
Input |
---|
2 2 |
Output |
3.333 |