Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
6375 邓小龙 11大象喝水 C++ Accepted 0 MS 260 KB 579 2025-02-22 08:54:38

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,t=0; double v; cin>>h>>r; v=r*r*3.14*h; //t=20*1000/v; /* if(20*1000%v!=0){ cout<<t+1<<endl; } else{ cout<<t<<endl; }*/ double x=20*1000; while(x>0){ //cout<<x<<endl; x=x-v; t++; } cout<<t<<endl; return 0; }