【梦幻诛仙14免费源码网站】【roc 背离 源码】【冒泡平台源码】acos指南源码
时间:2025-01-31 06:09:31 分类:娱乐
1.acosָ?指南梦幻诛仙14免费源码网站?Դ??
acosָ??Դ??
我把源代码也放出来:#include<iostream>
#include<cmath>
#include<cstdio>
#define PI acos(-1)
using namespace std;
int main()
{
double a1 = 4;
double a2 = 2;
double x = 0;
double y = 0;
x = (pow(a1, 2) - pow(a1, 2) * PI / 4 + pow(a1, 2) * PI / 4 / 3 - a1 - 2 * (sqrt(pow(a1, 2) - pow(a2, 2)) - 2)) / 2;
y = pow(a2, 2) - pow(a2, 2) * PI / 4 - x;
double s = fabs(x - y);
printf("%.4lf\n", s);
return 0;
}