1.5
#include<stdio.h> int main() {int h;double m,sum=0;scanf("%d",&h);m=(double)h;for(int i=1;i<=9;i++){sum+=m+m/2.0;m=m/2;}sum=sum+m;printf("%g\n%g",sum,m/2);return 0; }
1.5
#include<stdio.h> int main() {int h;double m,sum=0;scanf("%d",&h);m=(double)h;for(int i=1;i<=9;i++){sum+=m+m/2.0;m=m/2;}sum=sum+m;printf("%g\n%g",sum,m/2);return 0; }