Submission #00067


ソースコード

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

ステータス

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

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
1.txt AC 24 ms 476 KB
1
2.txt AC 21 ms 444 KB
1
3.txt AC 16 ms 288 KB
1
4.txt AC 20 ms 520 KB
1
5.txt AC 20 ms 492 KB
1
6.txt AC 20 ms 596 KB
1
7.txt AC 18 ms 568 KB
1
8.txt AC 18 ms 540 KB
1
sample1.txt AC 21 ms 508 KB
1
sample2.txt AC 22 ms 476 KB
1
sample3.txt AC 19 ms 580 KB
1