2 条题解

  • 1
    @ 2025-2-6 1:41:16

    printf 最好用的一集》

    #include <bits/stdc++.h>
    using namespace std;
    double r;
    int main() {
    	cin >> r;
    	printf("%.4f %.4f %.4f", r * 2, r * 2 * 3.14159, r * r * 3.14159);
    	return 0;
    }
    
    • 0

      #include <bits/stdc++.h> using namespace std; double r, c, s, d; int main() { cin >> r; d = r * 2, c = d * 3.14159, s = r * r * 3.14159; cout << fixed << setprecision(4) << d << " " << c << " " << s << "\n"; return 0; }

    • 1

    信息

    ID
    4464
    时间
    1000ms
    内存
    128MiB
    难度
    1
    标签
    (无)
    递交数
    141
    已通过
    107
    上传者