Similar Problems
000100200010001100160018001900210022002300240025002600270028002900300031003200330034003500360037003800390040004100420043004500461201120212031204120512070006006100630064006500660067006800690070007100720073007400750076007700780079008000810082008300840085008600870088008900900091009200930094009500960097009800990100
0062. Sikl2
Time limit : 1000 ms
Memory limit : 64 mb
Berilgan ketma-ketlikni dastlabki $n$ ta xadi yig’indisini toping
$S=\frac{sin{(1^1)}}{2^1}-\frac{sin{(2^2)}}{2^2}+...+(-1)^{n-1}\frac{sin{(n^n)}}{2^n}$
Kiruvchi ma’lumotlar: bitta butun son $n$ $(1 \le n \le 9)$;
Chiquvchi ma’lumotlar: $S$ – ketma-ketlikni dastlabki $n$ ta xadi yig’indisi javob $10^{-2}$ aniqlikda chiqarilsin.
Input |
---|
1 |
Output |
0.42 |
Input |
---|
2 |
Output |
0.61 |