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.|

RGB7234 - Косинус

cos(1+cos(2+...+cos((n-1)+cos(n))...) илэрхийллийг бод.

Input

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

Output

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

Example

Input:
3

Output:
0.039

Нэмсэн: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
2023-03-01 03:36:26
Tsogt-erdene mal hezeech bodoj chadahgu
2023-03-01 03:35:22
Dolgion mal sda
2022-12-02 02:18:19
huuljl bainu
2022-10-16 07:05:34



































































































huulha boli

















































boliocheee





















































































































































ireeduid chini muu da
2022-10-16 07:05:29



































































































huulha boli

















































boliocheee





















































































































































ireeduid chini muu da
2022-10-16 07:05:13



































































































huulha boli

















































boliocheee





















































































































































ireeduid chini muu da
2022-01-23 13:13:54
#include<bits/stdc++.h>
using namespace std;
float a,b,c,d,e;
int main()
{
scanf("%f",&a);
b=a;
c=a;
while(a>=1)
{
c=(a-1)+cos(c);
a--;
}
printf("%.3f",c);
return 0;
}

tugsuu n bnooo <3
enii harjiiga ohin bval ci hoorhn shv hha<3
2022-01-18 14:00:18
#include<bits/stdc++.h>
#include<math.h>
using namespace std;
int main(){
int n;
double x,a;
cin>>n;
a=0;
for(int i=n;i>=1;i--){
x=i+a;
a=cos(x);

}
cout<<fixed<<setprecision(3)<<a;
return 0;
}
2019-12-22 05:11:35
#include <cstdio>
#include <cmath>
int main(){
int n, i;
scanf("%d",&n);
double s = 0;
for (i = n ; i >= 1 ; i--){
s =cos(s + i);
}
printf("%.3lf", s);
}
2019-12-17 08:01:45
dolgion mal sda
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.