提交时间:2024-10-25 14:39:01
运行 ID: 53756
#include <bits/stdc++.h> using namespace std; int main() { double h, sum = 0; cin >> h; sum +=h; for (int i = 1; i < 10; i++) { sum += h; h/=2; } cout << sum <<endl; cout << h/2; }