Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
43838 | wangyuchun | 与圆相关的计算 | C++ | Accepted | 0 MS | 248 KB | 316 | 2024-03-23 12:10:17 |
#include<bits/stdc++.h> using namespace std; int main(){ int r; cin>>r; double s=r*2; double c=(3.14159*r)*2; double a=3.14159*r*r; cout<<fixed<<setprecision(4)<<s; cout<<" "; cout<<fixed<<setprecision(4)<<c; cout<<" "; cout<<fixed<<setprecision(4)<<a; return 0; }