提交时间:2025-12-05 14:57:22
运行 ID: 75005
#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; }