Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
2046 邓小龙 11大象喝水 C++ Accepted 0 MS 260 KB 265 2023-12-04 16:06:10

Tests(10/10):


Code:

# include<iostream> using namespace std; int main() { float h,r,tong; cin>>h>>r; tong=r*r*3.14*h/1000; int n = 20.0/tong; if(20.0 - n*tong > 0) { cout<<n+1; } else { cout<<n; } return 0; }