Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6376 | 詹梓涵 | 11大象喝水 | C++ | Accepted | 0 MS | 264 KB | 419 | 2025-02-22 08:56:31 |
#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 z=0,h,r; double s,x=20*1000;; cin>>h>>r; s=3.14*r*r*h; while(x>0){ x=x-s; z++; } cout<<z<<endl; return 0; }