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

Problem_ID: E
Result: Accepted
Time: 76ms
Memory: 1120kB
Author: 2018212212218
In contest: 1284

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include<stdio.h>
int main(){
int a[5000],i,n,m;

while(scanf("%d",&n)!=EOF){
	m=0;
	a[0]=1;
a[1]=1;
for(i=2;i<100;i++){
	a[i]=a[i-2]+a[i-1];
}
for(i=2;i<100;i++){
if(n==a[i])
	m++;
}
if(m==1)
	printf("Lucky Day\n");
else printf("Bad Day\n");
}


}