Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
47179 C++|付浩泽 【例39.2】 球弹跳高度的计算 C++ Compile Error 0 MS 0 KB 174 2024-05-12 17:53:22

Tests(0/0):


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


Judgement Protocol: