Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
6373 刘芃伽 11大象喝水 C++ Accepted 0 MS 268 KB 437 2025-02-22 08:48:14

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,t; 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; } return 0; }