#include<stdio.h>
#include<Windows.h>
int Heqishui(int n)
{
static int rep=n;
while (n > 1)
{
rep =rep + n / 2;
n = n / 2 + n % 2;
}
return rep;
}
int main()
{
int num = 20;
printf("可以喝到%d瓶汽水\n", Heqishui(num));
system("pause");
return 0;
}