Similar Problems
000100450037003800390040004100420043004600350020120112021203120412051207000600360061003400100033002300210019001800160011002200240026002700280029003000310032002500930088008900900091009200970094009500960098009901000086008700800085007200620063006400660067006800700071007300840074007500760077007800790081008200830069
0065. Sikl5
Time limit : 1000 ms
Memory limit : 64 mb
Berilgan ketma-ketlikni dastlabki $n$ ta xadi yig’indisini toping
$$S = \frac{1}{x^2} + \frac{2}{x^4} + \frac{3}{x^6} +...+ \frac{n}{x^{2n}} $$
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 javob $10^{-3}$ aniqlikda chiqarilsin.
Input |
---|
1 1 |
Output |
1.000 |
Input |
---|
0 2 |
Output |
0.000 |