4 条题解

  • 2
    @ 2023-11-11 18:36:54
    #include <cmath>
    #include <iomanip>
    using namespace std;
    int main(){
    	int r;
    	cin>>r;
    //	p=(a+b+c)/2;
    //	x=p*(p-a)*(p-b)*(p-c);
    //	s=sqrt(x);
    	cout<<fixed<<setprecision(1)<<r*2*3.14<<" "<<3.14*r*r<<endl;
    	return 0;
    }
    

    就不能给一个Π的值吗,还得让👴自己试

    • 1
      @ 2024-10-6 20:26:40

      #include #include #include using namespace std; int main(){ int r; cin>>r; // p=(a+b+c)/2; // x=p*(p-a)(p-b)(p-c); // s=sqrt(x); cout<<fixed<<setprecision(1)<<r23.14<<" "<<3.14rr<<endl; return 0; }

      • 0
        @ 2026-10-20 22:56:59

        #include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; cout<<fixed<<setprecision(1)<<3.142n<<" "<<3.14nn; return 0; }

        • 0
          @ 2026-10-20 22:56:47

          #include<bits/stdc++.h>

          using namespace std;

          int main(){

          int n;
          
          cin>>n;
          
          cout<<fixed<<setprecision(1)
          

          <<3.142n<<" "<<3.14nn;

          return 0;
          

          }

          • 1

          信息

          ID
          26
          时间
          1000ms
          内存
          256MiB
          难度
          6
          标签
          递交数
          194
          已通过
          61
          上传者