L. [GESP]L3-202506-Q3196-S
[GESP]L3-202506-Q3196-S
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
以下程序模拟了一个简单的小球反弹过程,横线处应该填入的是( )
#include <iostream>
using namespace std;
int main() {
int height = 10;
int distance = 0;
for (int i = 1; i <= 5; i++) { // 模拟5次落地
________________
height /= 2;
distance += height;
}
cout << distance << endl;
return 0;
}
{{ select(1) }}
distance += height/2;distance += height;distance += height*2;distance += height+1;
GESP 2025.06 C++ 三级 全真模拟赛
- 状态
- 已结束
- 规则
- OI
- 题目
- 27
- 开始于
- 2026-11-20 13:32
- 结束于
- 2026-11-25 13:32
- 持续时间
- 2 小时
- 主持人
- 参赛人数
- 0