Submission #00075


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include<bits/stdc++.h>
using namespace std;
long double f(long double x){
long double a=6*x-10;
return a;
}
long double g(long double x){
long double a=x*sqrt(x)-2*x;
return a;
}
long double h(long double x){
long double a=3*x-(x*x-2*x+1);
return a;
}
int main(){
long double x;
cin>>x;
x=f(f(h(x)+g(x))+f(g(x))-h(g(x+f(x))));
printf("%.18Lf\n",x);
}

ステータス

項目 データ
問題 0009 - Math Functions
ユーザー名 ei2423
投稿日時 2024-07-18 14:38:44
言語 C++17
状態 Accepted
得点 10
ソースコード長 412 Byte
最大実行時間 28 ms
最大メモリ使用量 628 KB

セット

セット 得点 Cases
1 ALL 10 / 10 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
1.txt AC 28 ms 472 KB
1
2.txt AC 16 ms 444 KB
1
3.txt AC 17 ms 416 KB
1
4.txt AC 21 ms 512 KB
1
5.txt AC 14 ms 484 KB
1
6.txt AC 28 ms 584 KB
1
7.txt AC 21 ms 428 KB
1
8.txt AC 20 ms 396 KB
1
sample1.txt AC 20 ms 628 KB
1
sample2.txt AC 20 ms 604 KB
1
sample3.txt AC 19 ms 448 KB
1