Similar Problems
00010045003700380039004000410042004300460035002012011202120312041205120700360061003400230033002200190018001600110010002100240026002700280029003000310032002500930088008900900091009200970094009500960098009901000086008700790085007200620064006500660067006800700071007300840074007500760077007800800081008200830069
0063. Sikl3
Time limit : 1000 ms
Memory limit : 64 mb
Berilgan ketma-ketlikni dastlabki $n$ ta xadi yig’indisini toping
$$S=\frac{1}{1!}-\frac{1}{3!}+\frac{1}{5!}-\frac{1}{7!}+...+(-1)^{n-1}\frac{1}{(2n-1)!}$$
Kiruvchi ma’lumotlar: bitta butun son $n$ $(0 \le n \le 10)$;
Chiquvchi ma’lumotlar: $S$ – ketma-ketlikni dastlabki $n$ ta xadi yig’indisi javob $10^{-4}$ aniqlikda chiqarilsin
Input |
---|
1 |
Output |
1.0000 |
Input |
---|
2 |
Output |
0.8333 |