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