Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
128934 凌嘉圻 计算球弹跳高度 C++ 通过 100 0 MS 240 KB 202 2024-01-26 11:57:48

Tests(2/2):


#include<iostream> #include<cstdio> using namespace std; int main(){ double h,h1,s=0; cin>>h1; h=h1; for(int i=1;i<=10;i++) {s+=2*h; h/=2;} printf("%.3f %.3f\n",s-h1,h); return 0; }


测评信息: