Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
128927 林麒瑞 计算球弹跳高度 C++ 解答错误 0 0 MS 240 KB 235 2024-01-26 11:40:09

Tests(0/2):


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


测评信息: