Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129863 林麒瑞 计算球弹跳高度 C++ 通过 100 0 MS 248 KB 248 2024-01-27 11:58:36

Tests(2/2):


#include<bits/stdc++.h> using namespace std; int main(){ double h,d; cin>>h; double r=h; for(int i=1;i<=10;i++){ d+=h*2; h/=2; } cout<<fixed<<setprecision(3)<<d-r<<endl; cout<<fixed<<setprecision(3)<<h; return 0; }


测评信息: