Submission #00073


ソースコード

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;
double f(double x){
double y=6*x-10;
return y;
}
double g(double x){
double y=x*sqrt(x)-2*x;
return y;
}
double h(double x){
double y=3*x-(x-1)*(x-1);
return y;
}
int main(){
int a;
cin>>a;
double b=f(f(h(a)+g(a))+f(g(a))-h(g(a+f(a))));
printf("%.10lf\n",b);
}

ステータス

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

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
1.txt AC 30 ms 600 KB
1
2.txt AC 21 ms 444 KB
1
3.txt AC 22 ms 544 KB
1
4.txt AC 21 ms 516 KB
1
5.txt AC 26 ms 620 KB
1
6.txt AC 24 ms 596 KB
1
7.txt AC 20 ms 564 KB
1
8.txt AC 24 ms 540 KB
1
sample1.txt AC 22 ms 636 KB
1
sample2.txt AC 34 ms 480 KB
1
sample3.txt AC 28 ms 452 KB
1