1881715151

New Scratcher Joined 7 years, 3 months ago China

About me

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

What I'm working on

What I've been doing

Comments

Sorry, comment posting has been turned off for this user profile.
  • Comments loading...