1 solutions

  • 0
    @ 2023-9-30 13:47:35
    #include<bits/stdc++.h>
    using namespace std;
    int h,r;
    double hh,rr,v;
    #define PI 3.14
    int main()
    {
    	cin>>h>>r;
    	hh=h*0.1;
    	rr=r*0.1;
    	v=PI*rr*rr*hh;
    	int temp=20/v;
    	if(20-temp*v==0.0)
    		cout<<temp;
    	else
    		cout<<(temp+1);
    }
    
    • 1

    Information

    ID
    6724
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    5
    Tags
    (None)
    # Submissions
    280
    Accepted
    104
    Uploaded By