提交时间:2025-12-26 15:22:11

运行 ID: 78103

#include <iostream> using namespace std; int main() { double h; cin >> h; double tot = h; double nh = h; for (int i = 2; i <= 10; i++) { nh/= 2; tot += 2 * nh; } double ten = nh / 2; cout << tot << endl; cout << ten<< endl; return 0; }