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

RGB7232 - Синус нийлбэр 3

sinx+sin(sinx)+sin(sin(sinx))+...+sin(sin...sin(sinx)...) нийлбэрийг ол.

Input

Бодит тоо x натурал тоо n нэг мөрөнд нэг зайгаар тусгаарлагдан өгөгдөнө.

Output

Нийлбэр. Таслалаас хойш 3 орны нарийвчлалтайгаар гарга.

Example

Input:
1.0 3
Output:
2.266

Нэмсэн: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
2022-01-17 15:31:13
#include<bits/stdc++.h>
#include<math.h>
using namespace std;
int main(){
int n;
double x,a,m;
cin>>a>>n;
x=a;
for(int i=1;i<=n;i++){
x=sin(x);
m=m+x;
}
cout<<fixed<<setprecision(3)<<m;
return 0;
}
2020-11-02 11:07:13
ewakoda ich
2020-06-01 07:39:25


Last edit: 2020-06-03 04:54:06
2020-03-23 12:53:22
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main() {
int a , n , i;
double x;
scanf("%lf%d",&x , &n);
double sum=sin(x);
double l;
l=x;
for(i = 1 ; i <n ; i++){
l=sin(l);
sum = sum + sin(l);
}
printf("%.3lf" , sum );
return 0;
}
=========================good&&luck===========================


Last edit: 2020-03-23 12:55:20
2019-11-23 14:11:34
#include <iostream>
#include<math.h>
using namespace std;
main()
{
float a,c,s=0,e,i,d=0;
int b;
cin>>a>>b;
e=a;
for(i=1;i<=b;i++)
{
e=sin(e);
d=d+e;
}
cout.setf(ios::fixed);
cout.precision(3);
cout<<d<<endl;
}
EZ
2019-11-14 13:28:12
mia ene bodolt ni door baigaa


















































































































































































































































































































































































































































































































goridsonii chini garz sug mine
huulhaa boliod uuruu bod
2019-11-02 05:53:57
....... :
:
:
:



























































































































































































































































































































lol
















































.......
2019-11-02 05:51:00
:D






































































































































































































































































































































































2019-11-02 05:50:28
time for big comment























































































































































































2019-11-02 05:49:55
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).||Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).||Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).||Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).||Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).||Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).||Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).||Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.