Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6379 | 谢锦卓 | 11大象喝水 | C++ | Accepted | 0 MS | 260 KB | 420 | 2025-02-22 09:01:26 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a=0,r,h; double v,x=20*1000; cin>>h>>r; v=3.14*r*r*h; while(x>0){ x=x-v; a++; } cout<<a<<endl; return 0; }