10 条题解

  • 4
    @ 2023-3-6 12:40:05

    `` 最基础的数学题

    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        double n;
        cin >> n;
        double t = n / 3.14 / 2;
        cout << fixed << setprecision(2) << t * t * 3.14;
        return 0;
    }
    
    • 1
      @ 2024-4-6 21:07:49

      很简单

      #include<iostream>
      #include<cstdio>
      using namespace std;
      int main()
      {
          double a,b,d;
          cin>>a;
          b=a/3.14/2;
          d=3.14*b*b;
          printf("%.2f",d);
          return 0;
      }
      
      • 1
        @ 2023-10-5 9:01:00

        上代码~

        #include <iostream>
        #include <stdio.h>
        using namespace std;
        int main()
        {
            double x,n,sum;
            cin>>x;
            n = x/2/3.14;
            sum = n*n*3.14;
            printf("%.2f",float(sum));
            return 0;
        }
        

        已AC,放心食用~

        • 0
          @ 2024-6-10 11:56:21

          世界最短代码!

          #include <bits/stdc++.h>
          using namespace std;
          int main(){
              cout<<fixed<<setprecision(2)<<314.00;
              return 0;
          }
          
          • 0
            @ 2023-9-27 23:44:21
            #include<bits/stdc++.h>
            using namespace std;
            int main()
            {
                double n;
                cin>>n;
                double r=(n/3.14)/2;
                double s=r*r*3.14;
                cout<<fixed<<setprecision(2)<<s;
                return 0;
            }
            
            
            • 0
              @ 2023-8-23 11:12:16

              过辣!

                  double c,r;
                  cin>>c;
                  r=1.0*c/6.28;
                  cout<<fixed<<setprecision(2)<<1.0*3.14*pow(r,2);//pow函数求r的2次方
              
              • 0
                @ 2023-7-13 10:39:58

                不是很难 ···#include<bits/stdc++.h> using namespace std; int main() { double a; cin >> a; double t = a / 3.14 / 2; cout << fixed << setprecision(2) << t * t * 3.14; return 0; } ···

                • 0
                  @ 2022-7-28 21:51:28

                  #include <bits/stdc++.h> using namespace std; int main() { double x; cin>>x; double ban=x/6.28; double s=3.14banban; cout << fixed << setprecision(2) << s; return 0;

                  }

                  • -1
                    @ 2022-11-9 13:14:55

                    号没了

                    #include <bits/stdc++.h>
                    using namespace std;
                    int main()
                    {
                        double n,a,b;
                        cin >> n;
                        a=n/3.14;
                        b=a/2;
                        cout << fixed << setprecision(2);
                        cout << b*b*3.14;
                    
                    
                    
                    • -1
                      @ 2022-9-1 17:54:29
                      printf("%.2f",(x/2)*(x/2)/3.14);
                      
                      • 1

                      信息

                      ID
                      334
                      时间
                      1000ms
                      内存
                      16MiB
                      难度
                      3
                      标签
                      递交数
                      357
                      已通过
                      187
                      上传者