Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
110707 | 滕骏 | 04球的体积 | C++ | Accepted | 1 MS | 276 KB | 483 | 2025-02-22 17:30:15 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<iomanip> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ double p=3.1415926,r,s; cin>>r; s=4.0/3*p*r*r*r; // cout<<setprecision(5)<<s<<endl; cout<<fixed<<setprecision(4)<<s<<endl; // cout<<scientific<<setprecision(5)<<s<<endl; return 0; }