Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
129837 韩立鹏 计算球弹跳高度 C++ Accepted 100 0 MS 248 KB 197 2024-01-27 11:38:58

Tests(2/2):


#include<bits/stdc++.h> using namespace std; int main() { double h1,h,s=0; cin>>h1; h=h1; for(int i=1;i<=10;i++){ s=s+2*h; h=h/2; } printf("%.3f \n%.3f",s-h1,h); return 0; }


Judgement Protocol: