Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
33472 chenyifei 与圆相关的计算 C++ 通过 0 MS 252 KB 236 2023-12-09 15:18:44

Tests(1/1):


#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; }


测评信息: