9 条题解

  • 0
    @ 2025-12-14 18:54:48

    #include <bits/stdc++.h> using namespace std; int main() { double h; cin >> h; double sum; sum = h; for(int i = 1; i <= 9; i++) { h /= 2; sum += h * 2; } cout << sum << endl; cout << h / 2 << endl; return 0; }

    信息

    ID
    938
    时间
    1000ms
    内存
    128MiB
    难度
    4
    标签
    递交数
    255
    已通过
    109
    上传者