酷代码 AI
菜单
服务商

烛龙战队飞船起飞加速路程计算的C++代码实现

```cpp #include <iostream> #include <iomanip> int main() { double x; std::cin >> x; double total_distance = 0; double current_distance = x; for (int i = 0; i < 80; ++i) { total_distance += current_distance; current_distance *= 1.1; } std::cout << std::fixed << std::setprecision(0) << total_distance << std::endl; return 0; } ``` ######[AI问答 | 145点数解答 | 2026-02-14 19:08:42]

相关提问
发财导航,免费问AI
实用工具查看更多
Linux在线手册 [开发类]
Jquery在线手册 [开发类]
今日油价 [生活类]
图片互转base64 [开发类]
时间转换器 [开发类]