Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
78103 sh25_zhangjiajia 球弹跳高度的计算 C++ Accepted 0 MS 248 KB 346 2025-12-26 15:22:11

Tests(1/1):


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


Judgement Protocol: