using System;
namespace _022_编程题
{
class Program
{
static void Main(string[] args)
{
int n = Convert.ToInt32(Console.ReadLine());
double high = n;
for (int i = 0; i < 10; i++)
{
high /= 2;
}
Console.WriteLine("第10次落地后,会反弹的高度是:" + high);
// 1 --- 2n
// 2 --- n
// 3 --- n/2
// 10 --- d(9)/2
double distance = 2 * n;
double sum = n;
for (int i = 0; i < 9; i++)
{
distance /= 2;
sum += distance;
}
Console.WriteLine("第10次落地后经过了多少米:" + sum);
}
}
}