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: 49ms
Memory: 1120kB
Author: 2018212212144
In contest: 1284

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