Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
128796 刘子隽bylz 计算球弹跳高度 C++ 通过 100 0 MS 240 KB 222 2024-01-26 09:49:40

Tests(2/2):


#include<bits/stdc++.h> using namespace std; int main(){ double n=0,h,g,x,t=0; cin>>h; g=h; x=h; while(t<10){ h+=n; n=g/=2; h+=n; ++t; } printf("%.3f\n",h-n); printf("%.3f",n); return 0; }


测评信息: