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

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

m=0;}
return 0;
}