3 条题解

  • 0
    @ 2025-4-8 17:20:08
          #include<bits/stdc++.h>
          using namespace std;
          int main()
          {
        	int h,r,s;
        	double v;
        	scanf("%d%d",&h,&r);
        	v=3.14*r*r*h;
        	s=20*1000/v;
        	if (s<20*1000/v)
        		s++;
        	printf("%d",s);
        	return 0;
          }
    
    • 0
      @ 2025-1-12 13:24:51

      #include <bits/stdc++.h> using namespace std; double h,r; int main() { cin>>h>>r; double v=rr3.14*h; cout<<(floor(20000/v)+1); return 0; }

      • 0
        @ 2025-1-12 13:20:35

        #include <bits/stdc++.h> using namespace std; double h,r; int main() { cin>>h>>r; int v=rr3.14*h; cout<<(floor(20000/v)+1); return 0; }

        • 1

        信息

        ID
        4479
        时间
        1000ms
        内存
        128MiB
        难度
        1
        标签
        (无)
        递交数
        282
        已通过
        104
        上传者