Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
6374 吴承熹 11大象喝水 C++ Accepted 0 MS 268 KB 421 2025-02-22 08:50:20

Tests(10/10):


Code:

#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 h,r,v,c,g; cin>>h>>r; c=r*r/1.0*3.14; v=c*h; g=20*1000/v; if(20*1000%v!=0){ g=g+1; } cout<<g<<endl; return 0; }