Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
149061 编程星球02 13自由落体 C++ Accepted 0 MS 268 KB 234 2026-03-07 10:45:48

Tests(1/1):


Code:

#include<iostream> #include<cstdio> using namespace std; int main(){ double h=100,s1=100; for(int i=1;i<=10;i++){ h/=2; s1+=h*2; } printf("%.6lf %.6lf\n",s1,h); return 0; }