Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115514 胡海峰老师 13自由落体 C++ Accepted 0 MS 268 KB 209 2025-03-31 14:12:35

Tests(1/1):


Code:

#include <iostream> using namespace std; int main() { float h=100; float tot = h; for(int i=1;i<=10;i++) { tot += h; h = h/2; } printf("%.6f %.6f",tot,h); return 0; }