题解分享
题解分享简介
圆的半径 - 题解
```
#include<iostream>
#include<iomanip>
using namespace std;
#define PI 3.14159
int main(){
double d,c,s;
double r;
cin>>r;
d=2*r;
c=2*PI*r;
s=PI*r*r;
cout<<fixed<<setprecision(4);
cout<<d<<" "<<c<<" "<<s<<endl;
}
```
查看全文
0
0
0
4
圆的半径 - 题解
```
#include <bits/stdc++.h>
using namespace std;
int main()
{
double r,d,l,s;
cin >> r;
d = 2 * r;
l = 2 * r * 3.14159;
s = r * r * 3.14159;
cout << fixed << setprecision(4) << d << " " << l << " " << s;
return 0;
}
```
查看全文
0
0
0
2
圆的半径 - 题解
include
include
using namespace std;
int main() {
double a;
cin >> a;
double b = 3.14159;
cout << fixed << setprecision(4) << 2 a << " " << fixed << setprecision(4) << 2 b a << " " << fixed << setprecision(4) << b (a a);
return 0;
}
//泪目,第一次提交,没考虑精度
查看全文
0
0
0
4



