Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
129840 林建彤 计算球弹跳高度 C++ Compile Error 0 0 MS 0 KB 221 2024-01-27 11:39:09

Tests(0/0):


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


Judgement Protocol: