标签:
1000 5
31.25 2875.00
#include<stdio.h>
int
main()
{
int
m,n,i;
float
h,l=0.0;
scanf
(
"%d%d"
,&m,&n);
h=m;
for
(i=1;i<=n;i++)
{
l+=1.5*h;
h=h/2;
}
l=l-h;
printf
(
"%.2f %.2f"
,h,l);
}
标签:
原文地址:http://www.cnblogs.com/SSYYGAM/p/4211271.html