7 条题解

  • 3
    @ 2022-12-11 18:14:28
    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n;
    	cin >> n;
    	cout << fixed << setprecision(2) << n / 4.0 * n / 4.0 << endl;
        return 0;
    }
    
    • 2
      @ 2023-8-31 14:44:45

      //已AC,请放心食用❤️ (能给个赞吗?)

      #include <bits/stdc++.h>
      using namespace std;
      int main(){
          int n;
          double b , r;
          cin >> n;
          b = n / 4;
          r = b * b;
          cout << fixed << setprecision(2) << r << endl;
          return 0;
      }
      ```给我点赞的都是大佬👍 
      
      • 1
        @ 2023-4-9 14:06:47
        #include <bits/stdc++.h>
        using namespace std;
        int main()
        {
            int c;//定义变量周长
            double a;//定义变量边长
            cin>>c;//输入周长
            a=c/4.0;//算出边长
            cout<<fixed<<setprecision(2)<<a*a;//算出面积并保留两位小数再打印
            return 0;
        
        }
        
        • 0
          @ 2024-5-23 21:11:04
          #include <bits/stdc++.h>
          using namespace std;
          int main()
          {
              float a;
              cin>>a;
              a=a/4;
              a=a*a;
              printf("%.2f",a);
              return 0;
          }
          
          • 0
            @ 2024-1-26 20:12:28

            6

            • 0
              @ 2023-9-28 0:06:43
              #include<bits/stdc++.h>
              using namespace std;
              int main()
              {
                  double m,s;
                  cin>>m;
                  s=(m/4)*(m/4);
                  cout<<fixed<<setprecision(2)<<s;
                  return 0;
              }
              
              • 0
                @ 2023-9-6 20:41:40
                #include<bits/stdc++.h>
                using namespace std;
                int main()
                {
                    double a , b;
                    cin >> a;
                    a = a / 4;
                    b = a * a;
                    printf("%.2f",b);
                    return 0;
                }
                

                A

                • 1

                【入门】已知正方形的周长求面积

                信息

                ID
                417
                时间
                1000ms
                内存
                16MiB
                难度
                3
                标签
                递交数
                346
                已通过
                173
                上传者