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: 40ms
Memory: 1124kB
Author: 2018212212238
In contest: 1284

#include<stdio.h>
#include<string.h>
int a[1000];
int main()
{
	int i,j,p,q=0;
	a[0]=2;a[1]=3;
	for(i=2;i<1000;i++)
	{
		a[i]=a[i-1]+a[i-2];
		if(a[i]>=100000)
		{p=i;break;}
	}
	while(scanf("%d",&j)!=EOF)
	{
		for(i=0;i<p;i++)
		{
			if (j==a[i])
			{
				q=1;break;
			}
		}
		if(q==1)
			printf("Lucky Day\n");
		else if(q==0)
			printf("Bad Day\n");
		q=0;
	}
}