12 条题解

  • 2
    @ 2022-12-24 17:53:22

    AC代码,放心食用

    #include <bits/stdc++.h> //万能头文件
    using namespace std;
    int main() 
    {
    	int n;
    	double m;
    	cin >> n; //输入
        n *= 1.0;
    	m = (n - 2.0) * 180 / n;
    	printf("%.1f", m); //保留一位小数(当然你也可以用setprecision(2))
        return 0;
    }
    
  • 2
    @ 2021-10-7 13:47:02

    我是个辣鸡,啥也不会,呜呜。大神求解。

    • @ 2022-8-6 17:25:38
      #include <bits/stdc++.h> 
      using namespace std;
      double x, sum;
      int main()
      {
          cin >> x;
          sum = (x - 2) * 180;
          cout << fixed << setprecision(1) << sum / x;
          return 0;
      }
      
  • 1
    @ 2024-1-25 20:48:04
    #include<bits/stdc++.h>
    using namespace std;
    double n,m;
    int main() {
    	cin>>n;
    	m=n;
    	n=n-2;
    	n=n*180.00;
    	printf("%.1f",n/m);
    	return 0;
    }
    
    • 0
      @ 2023-9-6 20:38:34
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
          int a;
      	double s;
      	cin >> a; 
          a *= 1.0;
      	s = (a - 2.0) * 180 / a;
      	printf("%.1f", s); 
          return 0;
      }
      

      A

      • 0
        @ 2023-8-23 11:01:32

        过辣!

            double n;
            cin>>n;
            cout<<fixed<<setprecision(1)<<1.0*(n-2)*180/n;
        
        • 0
          @ 2022-12-22 17:59:55
          #include <iostream>//hetao3097453
          #include <iomanip>
          using namespace std;
          int main()
          {
              double n;
              cin >> n;
              cout << fixed << setprecision(1) << (n - 2) * 180 / n;
              return 0;
          }
          
          • 0
            @ 2022-9-1 16:50:36
            printf("%.1f",1.0*(n-2)*180/n);
            
            • 0
              @ 2022-8-28 18:38:52

              image 哪个大神告诉我怎么发成你们那种格式的题解···

            • 0
              @ 2022-8-6 17:25:53
              #include <bits/stdc++.h> 
              using namespace std;
              double x, sum;
              int main()
              {
                  cin >> x;
                  sum = (x - 2) * 180;
                  cout << fixed << setprecision(1) << sum / x;
                  return 0;
              }
              
              • 0
                @ 2022-7-26 20:58:44
                #include <bits/stdc++.h>

                using namespace std; int main() { double n; cin>>n; double sum=(n-2)*180.0; cout << fixed << setprecision(1) << sum/n;///取小数点后一位👀️setprecision(填几小数点保留几位) }

                • 0
                  @ 2022-7-6 12:42:53
                  #include <bits/stdc++.h> 
                  using namespace std;
                  int main()
                  {
                      double n,x;
                      cin >> n;
                      x = (n-2)*180;
                      cout << fixed << setprecision(1) << x/n;
                      return 0;
                  }
                  
                  • -1
                    @ 2023-9-27 23:36:09
                    #include<bits/stdc++.h>
                    using namespace std;
                    int main()
                    {
                        double n;
                        cin>>n;
                        double b;
                        b=((n-2)*180)/n;
                        cout << fixed << setprecision(1)<<b; 
                        return 0;
                    }
                    
                    
                    
                    • 1

                    【入门】正多边形每个内角的度数?

                    信息

                    ID
                    314
                    时间
                    1000ms
                    内存
                    16MiB
                    难度
                    4
                    标签
                    递交数
                    466
                    已通过
                    201
                    上传者