Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
90814 罗迎甲 13自由落体 C++ Accepted 1 MS 264 KB 217 2024-09-16 17:13:23

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main() { double h=100.0; double x=100.0; for(int a=1;a<=10;a++){ h=h/2; x+=h*2; } printf("%.6lf %6lf",x,h); return 0; }