Submission #00100


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include<iostream>
#include<math.h>
#include<float.h>
using namespace std;
double f(double a){
return (6*a)-10;
}
double g(double b){
return (b*(sqrt(b)))-(2*b);
}
double h(double c){
return (3*c)-((c*c)-(2*c)+1);
}
int main(){
double x,ans;
cin>>x;
ans=f(f(h(x)+g(x))+f(g(x))-h(g(x+f(x))));
printf("%.15lf",ans);
return(0);
}

ステータス

項目 データ
問題 0009 - Math Functions
ユーザー名 ei2437
投稿日時 2024-07-18 15:20:02
言語 C++17
状態 Accepted
得点 10
ソースコード長 377 Byte
最大実行時間 30 ms
最大メモリ使用量 620 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
1.txt AC 18 ms 604 KB
1
2.txt AC 21 ms 448 KB
1
3.txt AC 28 ms 548 KB
1
4.txt AC 21 ms 520 KB
1
5.txt AC 23 ms 620 KB
1
6.txt AC 17 ms 592 KB
1
7.txt AC 29 ms 568 KB
1
8.txt AC 18 ms 416 KB
1
sample1.txt AC 25 ms 516 KB
1
sample2.txt AC 22 ms 484 KB
1
sample3.txt AC 30 ms 456 KB
1