为什么只有30分

Kinghero King of the summit 2023-10-26 17:08:30 12
#include <bits/stdc++.h>
using namespace std;
double a = 3.14, t;
int r;
int main() {
    cin >> r;
    t = double(r);
    double sum = pow(t, 3) * a * 4.0 / 3.0;
    printf("%.2lf", sum);
    return 0;
}
{{ vote && vote.total.up }}

共 1 条回复

root 站长

pi的精度太低了。