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

RGB7230 - Синус нийлбэр 1

sin(x)+sin(x2)+sin(x3)+...+sin(xn) нийлбэрийг ол.

Input

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

Output

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

Example

Input:
2.5 3

Output:
0.648

Нэмсэн: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-27 09:35:18
search HITLER named user
2024-06-05 09:22:07
llr
2024-05-10 05:43:26
tamir nmg touch hiisen
2024-03-12 12:04:34
harin chi gay mongol zail
2023-12-05 07:37:49
#include <bits/stdc++.h>
using namespace std;
int main(){
float a,n,i,k,x,s=1,ans=0;
cin>>x>>n;
for(i=1;i<=n;i++){
for(k=1;k<=i;k++){
s=s*x;
}
ans=ans+sin(s);
s=1;
}
printf("%.3f",ans);
return 0;
}
2023-07-02 15:01:25
#include <bits/stdc++.h>
using namespace std;

int main() {

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

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

}

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-05-21 09:18:58
pororo
2023-05-16 02:05:41
https://www.youtube.com/watch?v=j5a0jTc9S10&t=4s
2023-03-01 04:02:52
Dolgion bitgii huulaad bai
2023-02-15 03:54:22
Huulaarai elbgee
#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;

int main() {
int x, n, sum = 0;
cin >> x >> n;
for (int i = 1; i <= n; i++) {
sum = sum + sin(pow(x, i));
}
cout << fixed << setprecision(3) << sum;
return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.