Start: Jul, 10, 2019 08:30:00
2019年度暑期短学期达标测试补考
End: Jul, 10, 2019 11:30:00
Time elapsed:
Time remaining:

Problem_ID: E
Result: Accepted
Time: 53ms
Memory: 1120kB
Author: 2018212212134
In contest: 1284

#include <stdio.h>
#include <string.h>
#include <math.h>
int fib(int n)
{
	if(n==0||n==1)
		return n;
	else
		return fib(n-1)+fib(n-2);
}
int main(){
	int a[30],i,judge,n;
	for(i=0;i<30;i++)
	{
		a[i] = fib(i);
	}
	while(scanf("%d",&n)!=EOF)
	{
		judge = 0;
		for(i=0;i<30;++i)
		{
			if(n==a[i])
			{
				judge = 1;
				break;
			}
		}
		if(judge)
			printf("Lucky Day\n");
		else
			printf("Bad Day\n");
	}
	
}