Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
87417 黄睿杰 11大象喝水 C++ Wrong Answer 1 MS 272 KB 217 2024-08-10 10:30:53

Tests(2/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ double h,r,m=0,s=1; cin>>h>>r; m=(3.14*r*r*h)/1000; while(1){ if(m<20){ m+=m; s++; } else break; } cout<<s; return 0; }


Run Info:

------Input------
10 4
------Answer-----
40
------Your output-----
7