delete pics to save space
This commit is contained in:
16
history_source/信息学奥赛一本通/1.4.2.1.cpp
Normal file
16
history_source/信息学奥赛一本通/1.4.2.1.cpp
Normal file
@ -0,0 +1,16 @@
|
||||
#include<cstdio>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
double h,add=0,high;
|
||||
scanf("%lf",&h);
|
||||
for(int i=0;i<10;i++)
|
||||
{
|
||||
add+=h;
|
||||
h/=2;
|
||||
add+=h;
|
||||
}
|
||||
add-=h;
|
||||
printf("%g\n%g\n",add,h);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user