Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7233 - Синус косинус

(cos1/sin1)*((cos1+cos2)/(sin1+sin2))*...((cos1+cos2+...+cosn)/(sin1+sin2+...+sinn)) нийлбэрийг ол.

Input

Натурал тоо n өгөгдөнө.

Output

Үржвэр. Таслалаас хойш 3 оронгийн нарийвчлалтайгаар гарга.

Example

Input:
2

Output:
0.046

Нэмсэн:Bataa
Огноо:2013-01-23
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2019-11-02 07:15:01
#include <cstdio>
#include <cmath>

int main (){
int n;
scanf("%d", &n);
double sumsin = 0;
double sumcos = 0;
double sum = 1;
for(int i=1;i<= n;i++){
sumsin+=sin(i);
sumcos+=cos(i);
sum*=sumcos/sumsin;
}
printf("%.3lf" , sum);
}
2019-11-02 06:54:34
#include <cstdio>
#include <cmath>
int main() {
int a , n , i;
double x;
scanf("%lf%d" , &x ,&n);
double sum = 0;
double l = 1;
for(i = 1 ; i <= n ; i++){
l = l * sin(x);
sum = sum + l;
}
printf("%.3lf" , sum);
}
2019-11-02 06:54:15
dsadsdahgbjksbxcjkzxhjchsuoahdr89fwjhfonfhasvggudfsaxbnN<Z Xayigeuweioajoidnjsancuigasd8dfgqhuodhaisnjxbnzHbnx87ashdioanuihd
2019-11-02 06:52:32
#include <cstdio>
#include <cmath>
int main()
{
double s=0,j=0,i=1;
int b,c=1;
scanf ("%d", &b);
while (c <= b) {
s=s+cos(c);
j=j+sin(c);
i=i*s/j;
c++;
}
printf("%.3lf",i);
return 0;
}
ez
2019-11-02 06:49:15
hahahah

Last edit: 2019-11-02 06:50:41
2019-08-11 11:28:08
gggf


Last edit: 2019-08-11 11:29:07
2019-04-08 16:38:51 bakhitbek
vb
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.