#include<cstdio> double h,s; int n=7; int main(){ scanf("%lf",&h); do{ s+=h*1.5; h/=2; }while(--n); s+=h; h/=2; printf("%.4lf\n%.4lf",s,h); return 0; }
[此贴子已经被作者于2018-3-4 16:23编辑过]