Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
47203 C++|付浩泽 【例39.2】 球弹跳高度的计算 C++ 无测评数据 0 MS 0 KB 176 2024-05-12 18:28:17

Tests(0/0):


#include<iostream> using namespace std; int main(){ double h,s=0,b; cin>>h; for(int i=1;i<=10;i++){ s=s+h+b; h=h/2; b=h; } cout<<s<<endl<<h; return 0; }