2 条题解

  • 0
    @ 2025-3-7 14:11:18
    #include <bits/stdc++.h>
    using namespace std;
    
    int main()
    {
        double r,d,l,s;
        cin >> r;
        d = 2 * r;
        l = 2 * r * 3.14159;
        s = r * r * 3.14159;
        cout << fixed << setprecision(4) << d << " " << l << " " << s;
        return 0;
    }
    
    • 0
      @ 2024-8-12 17:13:45

      #include <iostream> #include<iomanip> using namespace std; int main() { double a; cin >> a; double b = 3.14159; cout << fixed << setprecision(4) << 2 * a << " " << fixed << setprecision(4) << 2 * b * a << " " << fixed << setprecision(4) << b * (a * a); return 0; } //泪目,第一次提交,没考虑精度

      • 1

      信息

      ID
      26
      时间
      1000ms
      内存
      256MiB
      难度
      5
      标签
      递交数
      35
      已通过
      15
      上传者