3 条题解

  • -2
    @ 2025-7-18 17:03:12

    #include <bits/stdc++.h>

    using namespace std; int a[25005], b[25005];

    int main() { double x, n, a = 1.0; cin >> x >> n; for (int i = 1; i <= n; i++) { a = (a + x / a) / 2; }

    cout << fixed << setprecision(3) << a;
    return 0;
    

    }

    信息

    ID
    205
    时间
    1000ms
    内存
    64MiB
    难度
    2
    标签
    递交数
    62
    已通过
    40
    上传者