#include<bits/stdc++.h>usingnamespace std;constdouble PI =3.14;intmain(){int t;
cin >> t;while(t--){int x;
cin >> x;double ans = x * x *0.5* PI + x * x;printf("%.2lf\n", ans);}return0;}
C 面积如图C所示,正方形周围接4个半圆,求图形的面积题解面积计算。代码#include<bits/stdc++.h>using namespace std;const double PI = 3.14;int main() { int t; cin >> t; while (t--) { int x; cin >> x; double ans = x * x * 0.5 * PI