Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
75005 sh25_zhangjiajia 球弹跳高度的计算 C++ 通过 0 MS 248 KB 346 2025-12-05 14:57:22

Tests(1/1):


#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; }


测评信息: