第100题 发帖留念
include
include
include
include
include
include
define N 100001
define M_PI 3.14159265358979323846
define M 1001
using namespace std;
int main()
{
int n,t;
int a[50];
while(~scanf(“%d”,&n)&&n)
{
a[1]=1;
a[2]=1;
a[3]=1;
for(int i=4;i<=n;i++)
a[i]=a[i-1]+a[i-3];
printf(“%d\n”,a[n]);
}
return 0;
}
一出生居然就是第一年