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
2024-11-22 10:38:18
dev++ bas l goy bnshv tei guys
2024-05-30 05:19:57
enhmend huulhaa bolioceee
2024-01-04 11:12:10
import java.util.*;
import java.lang.*;

class Main
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner in = new Scanner(System.in);
int a=in.nextInt();
double q=0,w=0,e=1;
int i=1;
while(i<=a){
q=q+Math.cos(i);
w=w+Math.sin(i);
e=e*(q/w);
i++;
}
System.out.printf("%.3f",e);
}
}
2023-08-07 11:52:07
#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
void sum(int n , float * Sinsum , float * Cossum)
{
*Sinsum = 0;
*Cossum = 0;
for(int i = 1 ; i <= n ; i++)
{
*Sinsum+=sin(i);
*Cossum+=cos(i);
}
}
int main()
{
int n;
float SinSum;
float CosSum;
float urj = 1;
cin>>n;
for(int i = 1 ; i <= n ; i++)
{
sum( i , &SinSum, &CosSum);
urj *= CosSum/SinSum;
}
cout<<fixed;
cout<<setprecision(3)<<urj;
return 0;
}
zaagch ashiglaad bdod uzle arai bichleg ih boloh yum bn
2023-07-05 13:44:38
#include <bits/stdc++.h>
using namespace std;

int main() {

double b,c=1,s=0,e,x,d=0;
long long n, i;
cin>>n;
//d=sin(x);
for(i=1; i<=n; i++){
d+=sin(i);
s+=cos(i);
c*=s/d;

}
printf("%.3lf",c);

}
AHLAH DESLEGCH LHAMJAM G.TAMIR OD GEDEG NERTEI TSAGDAA NARTAI TAARVAL ZUGTAARAI BOLGOOMJTOI BAIGAARAI MEDREL MUUTAI BAS AYULTAI SHUU!!!!!!!!!!!!!!!!!
AHLAH DESLEGCH LHAMJAM G.TAMIR OD GEDEG NERTEI TSAGDAA NARTAI TAARVAL ZUGTAARAI BOLGOOMJTOI BAIGAARAI MEDREL MUUTAI BAS AYULTAI SHUU!!!!!!!!!!!!!!!!!
AHLAH DESLEGCH LHAMJAM G.TAMIR OD GEDEG NERTEI TSAGDAA NARTAI TAARVAL ZUGTAARAI BOLGOOMJTOI BAIGAARAI MEDREL MUUTAI BAS AYULTAI SHUU!!!!!!!!!!!!!!!!!
AHLAH DESLEGCH LHAMJAM G.TAMIR OD GEDEG NERTEI TSAGDAA NARTAI TAARVAL ZUGTAARAI BOLGOOMJTOI BAIGAARAI MEDREL MUUTAI BAS AYULTAI SHUU!!!!!!!!!!!!!!!!!
AHLAH DESLEGCH LHAMJAM G.TAMIR OD GEDEG NERTEI TSAGDAA NARTAI TAARVAL ZUGTAARAI BOLGOOMJTOI BAIGAARAI MEDREL MUUTAI BAS AYULTAI SHUU!!!!!!!!!!!!!!!!!
AHLAH DESLEGCH LHAMJAM G.TAMIR OD GEDEG NERTEI TSAGDAA NARTAI TAARVAL ZUGTAARAI BOLGOOMJTOI BAIGAARAI MEDREL MUUTAI BAS AYULTAI SHUU!!!!!!!!!!!!!!!!!
AHLAH DESLEGCH LHAMJAM G.TAMIR OD GEDEG NERTEI TSAGDAA NARTAI TAARVAL ZUGTAARAI BOLGOOMJTOI BAIGAARAI MEDREL MUUTAI BAS AYULTAI SHUU!!!!!!!!!!!!!!!!!
AHLAH DESLEGCH LHAMJAM G.TAMIR OD GEDEG NERTEI TSAGDAA NARTAI TAARVAL ZUGTAARAI BOLGOOMJTOI BAIGAARAI MEDREL MUUTAI BAS AYULTAI SHUU!!!!!!!!!!!!!!!!!
AHLAH DESLEGCH LHAMJAM G.TAMIR OD GEDEG NERTEI TSAGDAA NARTAI TAARVAL ZUGTAARAI BOLGOOMJTOI BAIGAARAI MEDREL MUUTAI BAS AYULTAI SHUU!!!!!!!!!!!!!!!!!
2023-03-15 11:36:20
#include<stdio.h>
#include<math.h>
main()
{
float x,n,i,s=0,m=0,a=1;
scanf("%f",&n);
for(i=1;i<=n;i++)
{
m=m+cos(i);
s=s+sin(i);
a=a*(m/s);
}
printf("%0.3f",a);
}
huull
2022-11-04 07:31:30
//
#include <bits/stdc++.h.AKUMU>
using namespace std;
int main(){
double a=0,b=0,c=1;
int d,i=1;
cin>>d;//scanf("%d",&d)
while (i <= d) {
a=a+cos(i);
b=b+sin(i);
c=c*a/b;
i++;
}
cout << fixed << setprecision(3) << c;//printf("%.3lf",c);
}//
2022-03-31 14:08:50
#include<stdio.h>
#include<math.h>
int main ()
{
float a, n=1, m=0, s=0, i;
scanf("%f",&a);
for(i=1; i<=a; i++)
{
m=m+cos(i);
s=s+sin(i);
n=n*(m/s);

}
printf("%.3f",n);
return 0;
}
2022-01-23 12:14:37
#include<bits/stdc++.h>
using namespace std;
float a,b,c,d=0,e=0,f=1,g;
int main()
{
scanf("%f",&a);

for(b=1; b<=a; b++)
{
d=d+cos(b);
e=e+sin(b);
f=f*(d/e);

}
printf("%.3f",f);
return 0;
}



tehdee sin(1)/cos(1) iig bas bodoh estoi shvvde aldaatai bodlogo um bolvu haha
bi bn a haha
2021-02-20 01:34:18


Last edit: 2021-02-20 01:34:50
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.