Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
33029 | 张淳睿 | 与圆相关的计算 | C++ | Accepted | 1 MS | 244 KB | 236 | 2023-12-04 20:56:16 |
#include<iostream> #include<iomanip> using namespace std; const double PI=3.14159; int main() { double r,d,c,s; cin>>r; d=r*2; c=2*PI*r; s=PI*r*r; cout<<fixed<<setprecision(4)<<d<<" "<<c<<" "<<s<<endl; return 0; }