Submission #00065


ソースコード

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
29
30
31
32
33
#include<bits/stdc++.h>
#define mset multiset
#define unset unordered_set
#define ll long long
#define endl "\n";
#define prg_queue priority_queue <int,vector<int>,greater<int>
#define pr_queue priority_queue <int>
#define upper upper_bound
#define lower lower_bound
using namespace std;
double f(double x){
double t;
t=6*x-10;
return t;
}
double g(double x){
double t;
t=(x*sqrt(x))-2*x;
return t;
}
double h(double x){
double t;
t=3*x-((x-1)*(x-1));
return t;
}
int main(){
double a=0,b=0,c=0,d=0,e=0;
double x,y,z;
cin >>a;
y=f(f(h(a)+g(a))+f(g(a))-h(g(a+f(a))));
printf("%.11lf\n",y);
return 0;
}

ステータス

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

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
1.txt AC 15 ms 604 KB
1
2.txt AC 17 ms 444 KB
1
3.txt AC 23 ms 416 KB
1
4.txt AC 22 ms 512 KB
1
5.txt AC 25 ms 484 KB
1
6.txt AC 20 ms 584 KB
1
7.txt AC 16 ms 552 KB
1
8.txt AC 19 ms 524 KB
1
sample1.txt AC 24 ms 492 KB
1
sample2.txt AC 25 ms 592 KB
1
sample3.txt AC 22 ms 556 KB
1