8 条题解

  • 0
    @ 2025-5-14 21:08:40

    这里的PI我用了前80位的

    # include <bits/stdc++.h>
    
    using namespace std;
    const double PI=3.141592653589793238462643383279502884197169399375105820979230781640628620899;
    int main(){
    	int h,r,d,ans;
    	cin>>h>>r;
    	d=r*r*PI*h;
    	ans=20*1000/d;
    	cout<<ans+1<<endl;
    	return 0;
    }
    

    信息

    ID
    818
    时间
    1000ms
    内存
    128MiB
    难度
    5
    标签
    递交数
    1216
    已通过
    499
    上传者