Run ID:154368

提交时间:2026-05-30 13:30:28

#include <iostream> #include <iomanip> // 用于设置输出精度 using namespace std; int main() { double height = 100.0; // 初始高度 int n = 10; // 第10次落地 for (int i = 0; i < n; ++i) { height /= 2.0; // 每次落地后反弹高度减半 } cout << fixed << setprecision(6) << height << endl; // 保留6位小数输出 return 0; }