5 条题解
-
1刘臻昊 LV 6 @ 2022-11-13 13:38:45
#include <bits/stdc++.h> #define PI 3.1415926535 using namespace std; int main() { double r; cin >> r; cout << fixed << setprecision(2) << PI * r * r << endl; cout << fixed << setprecision(2) << PI * 2 * r << endl; return 0; }
-
02022-8-12 21:25:52@
#include <iostream> #include <algorithm> #include <cstdio> #include <cstring> #include <string> #include <iomanip> #include <cmath> #include <queue> #include <map> #include <stack> #include <vector> using namespace std; #define long long LL const int N = 1e6+5; const double pi = 3.1415926535; double r; int main(){ cin>>r; double ans = r * r * pi; printf("%.2lf",ans); cout << endl; ans = r * 2 * pi; printf("%.2lf",ans); return 0; }
-
-22022-8-29 16:30:30@
#include<stdio.h> using namespace std; int main() { double x,pi=3.1415926535; scanf("%lf",&x); printf("%.2lf\n",1.0*pi*x*x); printf("%.2lf",1.0*2*pi*x); return 0; }
-
-42022-1-21 23:16:43@
#include <iostream> #include <iomanip> using namespace std; int main(){ double n,pi=3.1415926535; cin>>n; cout<<fixed<<setprecision(2)<<pi*n*n<<endl; cout<<pi*2*n<<endl; return 0; }
-
-42021-10-13 13:03:31@
a
- 1
信息
- ID
- 831
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 3
- 标签
- 递交数
- 91
- 已通过
- 52
- 上传者