Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
77614 sh25_wuyy 球弹跳高度的计算 C++ Accepted 0 MS 252 KB 396 2025-12-26 14:32:55

Tests(1/1):


#include <iostream> #include <cmath> using namespace std; int main() { int h; cin>>h; double total_distance=h; double current_height=h; for (int i = 2; i <=10;i++){ current_height /= 2; total_distance+=2*current_height;} double tenth_bounce=current_height/2; cout << total_distance<<endl; cout << tenth_bounce<<endl; return 0; }


Judgement Protocol: