Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
33559 | lihaocheng | 与圆相关的计算 | C++ | Accepted | 0 MS | 256 KB | 242 | 2023-12-10 10:53:24 |
#include <iostream> #include <iomanip> using namespace std; int main(){ double r; const double PI = 3.14159; cin>>r; cout<<fixed<<setprecision(4)<<2 * r<<" "<<2 * PI * r<<" "<<PI * r * r<<endl; return 0; }